pub trait FromLeStream: Sized {
// Required method
fn from_le_stream<T>(bytes: T) -> Option<Self>
where T: Iterator<Item = u8>;
// Provided methods
fn from_le_stream_exact<T>(bytes: T) -> Result<Self>
where T: Iterator<Item = u8> { ... }
fn from_le_slice(bytes: &[u8]) -> Result<Self> { ... }
}Expand description
Parse an object from a stream of bytes with little endianness.
Required Methods§
Provided Methods§
Sourcefn from_le_stream_exact<T>(bytes: T) -> Result<Self>
fn from_le_stream_exact<T>(bytes: 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.