Skip to main content

Text

Type Alias Text 

Source
pub type Text<'a> = Cow<'a, [u8]>;
Expand description

A text value: borrowed from the user-agent or from a static table, owned when detection rewrites it (17_4 becomes 17.4).

Aliased Type§

pub enum Text<'a> {
    Borrowed(&'a [u8]),
    Owned(Vec<u8>),
}

Variants§

§1.0.0

Borrowed(&'a [u8])

Borrowed data.

§1.0.0

Owned(Vec<u8>)

Owned data.