Skip to main content

Str

Type Alias Str 

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

A string that is either a &'static str (so a parameter list can be a const) or owned (so an app can build one per frame from its document).

Aliased Type§

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

Variants§

§1.0.0

Borrowed(&'static str)

Borrowed data.

§1.0.0

Owned(String)

Owned data.