singularize-macro
Adds a simple singularize! macro that runs at compiletime
Usage
singularize!; // item
singularize_paste!
It can also be used within declarative macros.
Adds a simple singularize! macro that runs at compiletime
singularize!(items); // item
singularize_paste! {
fn [messages]() -> &'static str { // fn message() -> ...
"hello"
}
}
It can also be used within declarative macros.