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