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