Registry / utility / easy-ext

easy-ext

JSON →
library1.0.3rscratesunverified

A lightweight attribute macro for easily writing extension trait patterns.

# Cargo.toml [dependencies] easy-ext = "1.0.3"
INSTALL
IMPORT
SIG · EASY-EXT
E
easy-ext
utilityrustv1.0.3
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 easy_ext::ext;

Defines an extension trait for String using the ext macro.

use easy_ext::ext; #[ext] pub trait StringExt { fn greet(&self) -> String; } impl StringExt for String { fn greet(&self) -> String { format!("Hello, {}!", self) } } fn main() { let name = "World".to_string(); println!("{}", name.greet()); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.0.3latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
easy-ext — cargo add easy-ext · libregistry