Crate microstring

Crate microstring 

Source
Expand description

Small, niche-able, stack allocated strings.

const CURRENCY: NanoString = NanoString::new("GBP").unwrap();
const TOO_BIG: NanoString = NanoString::new("GEEBEEPEE").unwrap();
assert_eq! {
    size_of::<NanoString>(),
    size_of::<Option<NanoString>>(),
}

Structs§

MicroString
A stack-allocated string which can hold up to 7 UTF-8 encoded bytes.
MicroStringError
MilliString
A stack-allocated string which can hold up to 15 UTF-8 encoded bytes.
MilliStringError
NanoString
A stack-allocated string which can hold up to 3 UTF-8 encoded bytes.
NanoStringError