Module extension_trait
A macro for defining extension methods on external types.
- Crate
::extension_trait. - docs.rs
- crates.io
- GitHub
extension_trait provides the extension_trait attribute macro,
which generates a trait and its implementation from a single impl block.
This is the standard Rust pattern for adding methods to types
defined in other crates, but without the boilerplate
of writing a matching trait definition by hand.
Example
use extension_trait;
pub
assert!;
assert_eq!;
Macros
- extension_trait Declares an extension trait