CowStr

Type Alias CowStr 

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

Reusable Clone-on-Write str with lifetime of 'a

Aliased Type§

pub enum CowStr<'a> {
    Borrowed(&'a str),
    Owned(String),
}

Variants§

§1.0.0

Borrowed(&'a str)

Borrowed data.

§1.0.0

Owned(String)

Owned data.