Macro tinystr::tinystr8 [−][src]
Macro to create a const TinyStr8, validated with zero runtime cost.
The argument must be a string literal: https://doc.rust-lang.org/reference/tokens.html#string-literals
Example
use tinystr::{tinystr8, TinyStr8}; const S1: TinyStr8 = tinystr8!("abcdefg"); let s2: TinyStr8 = "abcdefg".parse().unwrap(); assert_eq!(S1, s2);