pub type SharedCStr<'s> = FlexStr<'s, CStr, Arc<CStr>>;Available on crate feature
cstr only.Expand description
Shared CStr type
Aliased Type§
pub enum SharedCStr<'s> {
Borrowed(&'s CStr),
Inlined(InlineFlexStr<CStr>),
RefCounted(Arc<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(Arc<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>