Trait ReadBytes

Source
pub trait ReadBytes {
    // Required methods
    fn read_bytes_be<T>(&mut self) -> Result<T>
       where T: BytesConvertible;
    fn read_bytes_le<T>(&mut self) -> Result<T>
       where T: BytesConvertible;
}

Required Methods§

Source

fn read_bytes_be<T>(&mut self) -> Result<T>

Source

fn read_bytes_le<T>(&mut self) -> Result<T>

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.

Implementors§

Source§

impl<R> ReadBytes for R
where R: Read,