Skip to main content

RawBytes

Type Alias RawBytes 

Source
pub type RawBytes = Vec<u8>;
Expand description

A type alias for a vector of bytes, commonly used for raw data.

Aliased Type§

pub struct RawBytes { /* private fields */ }

Trait Implementations§

Source§

impl KeyEnDeOrdered for RawBytes

Source§

fn to_bytes(&self) -> RawBytes

Encodes the key into a byte vector.
Source§

fn into_bytes(self) -> RawBytes

Consumes the key and encodes it into a byte vector.
Source§

fn from_slice(b: &[u8]) -> Result<Self>

Decodes a key from a byte slice.
Source§

fn from_bytes(b: RawBytes) -> Result<Self>

Consumes a byte vector and decodes it into a key.