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