Struct data_model::endian::SLeSize
source · pub struct SLeSize(_);Expand description
An integer type of with an explicit endianness.
See module level documentation for examples.
Implementations§
Trait Implementations§
source§impl DataInit for SLeSize
impl DataInit for SLeSize
source§fn from_slice(data: &[u8]) -> Option<&Self>
fn from_slice(data: &[u8]) -> Option<&Self>
Converts a slice of raw data into a reference of
Self. Read moresource§fn read_from_prefix(data: &[u8]) -> Option<Self>
fn read_from_prefix(data: &[u8]) -> Option<Self>
Copies the value of
Self from the beginning of a slice of raw data. Read moresource§fn from_mut_slice(data: &mut [u8]) -> Option<&mut Self>
fn from_mut_slice(data: &mut [u8]) -> Option<&mut Self>
Converts a mutable slice of raw data into a mutable reference of
Self. Read moresource§fn from_reader<R: Read>(read: R) -> Result<Self>
fn from_reader<R: Read>(read: R) -> Result<Self>
Creates an instance of
Self by copying raw data from an io::Read stream.source§impl<'de> Deserialize<'de> for SLeSize
impl<'de> Deserialize<'de> for SLeSize
source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more