Trait ReadBytes

Source
pub trait ReadBytes {
    // Required method
    fn read_bytes<P: ReadFromBytes>(&mut self) -> Result<P>;
}
Expand description

A trait for reading any of the Ether Dream protocol types from little-endian bytes.

A blanket implementation is provided for all types that implement byteorder::ReadBytesExt.

Required Methods§

Source

fn read_bytes<P: ReadFromBytes>(&mut self) -> Result<P>

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: ReadBytesExt,