string

Macro string 

Source
macro_rules! string {
    ($s:literal) => { ... };
}
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")>();