BERead

Trait BERead 

Source
pub trait BERead: Sized {
    // Provided methods
    fn read<D: Deserialize<BigEndian, Self>>(&mut self) -> Res<D> { ... }
    fn read_be<D: Deserialize<BigEndian, Self>>(&mut self) -> Res<D> { ... }
    fn read_le<D: Deserialize<LittleEndian, Self>>(&mut self) -> Res<D> { ... }
}
Expand description

Use this to read in big endian.

Wrapper for ERead<BigEndian>.

This exists solely to make use notation work. See ERead for documentation.

Provided Methods§

Source

fn read<D: Deserialize<BigEndian, Self>>(&mut self) -> Res<D>

Source

fn read_be<D: Deserialize<BigEndian, Self>>(&mut self) -> Res<D>

Source

fn read_le<D: Deserialize<LittleEndian, Self>>(&mut self) -> Res<D>

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: Read> BERead for R