Registry / utility / extend

extend

JSON →
library1.2.0rscratesunverified

Create extensions for types you don't own with extension traits but without the boilerplate.

# Cargo.toml [dependencies] extend = "1.2.0"
INSTALL
IMPORT
SIG · EXTEND
E
extend
utilityrustv1.2.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ext
use extend::ext;

Defines an extension trait for `String` using the `#[ext]` attribute macro.

use extend::ext; #[ext] pub trait StringExt { fn greet(&self) -> String { format!("Hello, {}!", self) } } fn main() { println!("{}", "world".greet()); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.2.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
extend — cargo add extend · libregistry