ident!() { /* proc-macro */ }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)>();