LocalOsStr

Type Alias LocalOsStr 

Source
pub type LocalOsStr<'s> = FlexStr<'s, OsStr, Rc<OsStr>>;
Available on crate features std and osstr only.
Expand description

Local OsStr type (NOTE: This can’t be shared between threads)

Aliased Type§

pub enum LocalOsStr<'s> {
    Borrowed(&'s OsStr),
    Inlined(InlineFlexStr<OsStr>),
    RefCounted(Rc<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(Rc<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>