pub type LocalCStr<'s> = FlexStr<'s, CStr, Rc<CStr>>;Available on crate feature
cstr only.Expand description
Local CStr type (NOTE: This can’t be shared between threads)
Aliased Type§
pub enum LocalCStr<'s> {
Borrowed(&'s CStr),
Inlined(InlineFlexStr<CStr>),
RefCounted(Rc<CStr>),
Boxed(Box<CStr>),
}Variants§
Borrowed(&'s CStr)
Borrowed string - borrowed strings are imported as &S
Inlined(InlineFlexStr<CStr>)
Inline string - owned strings that are small enough to be stored inline
RefCounted(Rc<CStr>)
Reference counted string - owned strings that are too large for inline storage
Boxed(Box<CStr>)
Boxed string - heap allocated strings are imported as Box<S>