Skip to main content

Bytes

Type Alias Bytes 

Source
pub type Bytes = Cow<'static, [u8]>;
Expand description

A font file’s bytes: embedded in the binary or read at run time.

Aliased Type§

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

Variants§

§1.0.0

Borrowed(&'static [u8])

Borrowed data.

§1.0.0

Owned(Vec<u8>)

Owned data.