Skip to main content

ArrayBytesRaw

Type Alias ArrayBytesRaw 

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

Raw array element bytes.

These can represent:

  • [ArrayBytes::Fixed]: fixed length elements of an array in C-contiguous order,
  • [ArrayBytes::Variable]: variable length elements of an array in C-contiguous order with padding permitted,
  • Encoded array bytes after an array to bytes or bytes to bytes codecs.

Aliased Type§

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

Variants§

§1.0.0

Borrowed(&'a [u8])

Borrowed data.

§1.0.0

Owned(Vec<u8>)

Owned data.