microstring 0.1.1

Small, niche-able, stack allocated strings
Documentation

Small, niche-able, stack allocated strings.

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