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§
- Micro
String - A stack-allocated string which can hold up to 7 UTF-8 encoded bytes.
- Micro
String Error - Milli
String - A stack-allocated string which can hold up to 15 UTF-8 encoded bytes.
- Milli
String Error - Nano
String - A stack-allocated string which can hold up to 3 UTF-8 encoded bytes.
- Nano
String Error