macro_rules! ident {
($i:ident) => { ... };
}
Expand description
Convert a string to a type, the input must be an identifier.
ยงExample
use stringz::{TypedString, ident};
fn test_hello<T: TypedString>() {
assert_eq!(T::value(), "hello");
}
test_hello::<ident!(hello)>();