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>
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.