pub type SharedOsStr<'s> = FlexStr<'s, OsStr, Arc<OsStr>>;Available on crate features
std and osstr only.Expand description
Shared OsStr type
Aliased Type§
pub enum SharedOsStr<'s> {
Borrowed(&'s OsStr),
Inlined(InlineFlexStr<OsStr>),
RefCounted(Arc<OsStr>),
Boxed(Box<OsStr>),
}Variants§
Borrowed(&'s OsStr)
Borrowed string - borrowed strings are imported as &S
Inlined(InlineFlexStr<OsStr>)
Inline string - owned strings that are small enough to be stored inline
RefCounted(Arc<OsStr>)
Reference counted string - owned strings that are too large for inline storage
Boxed(Box<OsStr>)
Boxed string - heap allocated strings are imported as Box<S>