Macro icu_provider::internal::tinystr4 [−][src]
macro_rules! tinystr4 { ($s:literal) => { ... }; }
Re-export tinystr4 for macro resource_key!() Macro to create a const TinyStr4, 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::{tinystr4, TinyStr4}; const S1: TinyStr4 = tinystr4!("abc"); let s2: TinyStr4 = "abc".parse().unwrap(); assert_eq!(S1, s2);