KamilaBorowska/extension-trait#11
This create is no longer maintained, consider using extend or easy-ext instead.
A macro to declare extension traits - a trait that is created to add methods to an external type.
#[macro_use]
extern crate extension_trait;
#[extension_trait]
pub impl DoubleExt for str {
fn double(&self) -> String {
self.repeat(2)
}
}
fn main() {
assert_eq!("Hello".double(), "HelloHello");
}