CowStr

Type Alias CowStr 

Source
pub type CowStr = Cow<'static, str>;
Expand description

Cow<'static, str>.

buildstructor doesn’t support Into<_> for types with parameters (like Cow<'static, str>), so we trick it by defining a type alias.

Aliased Type§

pub enum CowStr {
    Borrowed(&'static str),
    Owned(String),
}

Variants§

§1.0.0

Borrowed(&'static str)

Borrowed data.

§1.0.0

Owned(String)

Owned data.