ImStr

Type Alias ImStr 

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

Represents a borrowed string that can be either a Rust string slice or an ImString

Aliased Type§

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

Variants§

§1.0.0

Borrowed(&'a str)

Borrowed data.

§1.0.0

Owned(String)

Owned data.