[][src]Macro aliri_macros::typed_string

macro_rules! typed_string {
    {
        $(#[$meta:meta])*
        $v:vis struct $ty:ident (String);

        $(#[$meta_ref:meta])*
        $v_ref:vis struct $ty_ref:ident (str);
    } => { ... };
}

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.