DecodeBuffer

Trait DecodeBuffer 

Source
pub trait DecodeBuffer {
    // Required methods
    fn read_usize(&mut self, dst: &mut usize) -> Result<(), DecodeBufferError>;
    fn read<T>(&mut self, dst: &mut T) -> Result<(), DecodeBufferError>;
    fn read_slice<T>(&mut self, dst: &mut [T]) -> Result<(), DecodeBufferError>;
}

Required Methods§

Source

fn read_usize(&mut self, dst: &mut usize) -> Result<(), DecodeBufferError>

Source

fn read<T>(&mut self, dst: &mut T) -> Result<(), DecodeBufferError>

Source

fn read_slice<T>(&mut self, dst: &mut [T]) -> Result<(), DecodeBufferError>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl DecodeBuffer for &mut [u8]

Source§

fn read_usize(&mut self, dst: &mut usize) -> Result<(), DecodeBufferError>

Source§

fn read<T>(&mut self, dst: &mut T) -> Result<(), DecodeBufferError>

Source§

fn read_slice<T>(&mut self, dst: &mut [T]) -> Result<(), DecodeBufferError>

Implementors§