pub enum Endianness {
Be,
Le,
}Expand description
The byte order of a numeric serialization.
Variants§
Be
Big-endian: the most significant byte is written first.
Le
Little-endian: the least significant byte is written first.
Trait Implementations§
Source§impl Clone for Endianness
impl Clone for Endianness
Source§fn clone(&self) -> Endianness
fn clone(&self) -> Endianness
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for Endianness
Source§impl Debug for Endianness
impl Debug for Endianness
Source§impl<'de> Deserialize<'de> for Endianness
impl<'de> Deserialize<'de> for Endianness
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
impl Eq for Endianness
Source§impl PartialEq for Endianness
impl PartialEq for Endianness
Source§impl Serialize for Endianness
impl Serialize for Endianness
impl StructuralPartialEq for Endianness
Source§impl TryFrom<&str> for Endianness
impl TryFrom<&str> for Endianness
Source§type Error = CodamaError
type Error = CodamaError
The type returned in the event of a conversion error.
Source§fn try_from(value: &str) -> CodamaResult<Self>
fn try_from(value: &str) -> CodamaResult<Self>
Performs the conversion.
Source§impl TryFrom<String> for Endianness
impl TryFrom<String> for Endianness
Source§type Error = CodamaError
type Error = CodamaError
The type returned in the event of a conversion error.
Source§fn try_from(value: String) -> CodamaResult<Self>
fn try_from(value: String) -> CodamaResult<Self>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for Endianness
impl RefUnwindSafe for Endianness
impl Send for Endianness
impl Sync for Endianness
impl Unpin for Endianness
impl UnsafeUnpin for Endianness
impl UnwindSafe for Endianness
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.