string!() { /* proc-macro */ }Expand description
Convert a string to a type, the input must be a string literal.
§Example
use stringz::{TypedString, string};
fn test_hello<T: TypedString>() {
assert_eq!(T::value(), "hello");
}
test_hello::<string!("hello")>();