macro_rules! typed_string { { $(#[$meta:meta])* $v:vis struct $ty:ident (String); $(#[$meta_ref:meta])* $v_ref:vis struct $ty_ref:ident (str); } => { ... }; }
Expand description
Constructs a strongly-typed wrapper around strings
This macro exports a line of unsafe code to manage the reinterpretation
of &str
as the new reference type.