pub trait ReadFrom: Sized {
// Required methods
fn read_from_le<T: Read>(src: T) -> Result<Self>;
fn read_from_be<T: Read>(src: T) -> Result<Self>;
}Available on crate feature
std only.Expand description
Endian aware read from a Read.
Required Methods§
sourcefn read_from_le<T: Read>(src: T) -> Result<Self>
fn read_from_le<T: Read>(src: T) -> Result<Self>
Object Safety§
This trait is not object safe.