pub trait FromBytes {
// Required method
fn read_le<R: Read>(reader: R) -> IoResult<Self>
where Self: Sized;
// Provided method
fn from_bytes_le(bytes: &[u8]) -> Result<Self>
where Self: Sized { ... }
}
Required Methods§
Provided Methods§
Sourcefn from_bytes_le(bytes: &[u8]) -> Result<Self>where
Self: Sized,
fn from_bytes_le(bytes: &[u8]) -> Result<Self>where
Self: Sized,
Returns Self
from a byte array in little-endian order.