Type Alias Text

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

Text representation.

Many things inside here can take either owned strings or string literals.

Aliased Type§

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

Variants§

§1.0.0

Borrowed(&'static str)

Borrowed data.

§1.0.0

Owned(String)

Owned data.