ReadVec

Type Alias ReadVec 

Source
pub type ReadVec = ReadBuf<Box<[MaybeUninit<u8>]>>;
Expand description

A ReadBuf that owns it’s buffer using a Vec<u8>

Aliased Type§

pub struct ReadVec { /* private fields */ }

Trait Implementations§

Source§

impl From<Box<[MaybeUninit<u8>]>> for ReadVec

Create a ReadBuf from an uninitialised boxed-slice of bytes. Will begin with 0 filled bytes.

Source§

fn from(buf: Box<[MaybeUninit<u8>]>) -> Self

Converts to this type from the input type.
Source§

impl From<Vec<u8>> for ReadVec

Create a ReadBuf from a partially initialised vec of bytes. Will begin with 0 filled bytes.

Source§

fn from(buf: Vec<u8>) -> Self

Converts to this type from the input type.