#[repr(i16)]pub enum Endianness {
Little = 0,
Big = 1,
}Expand description
Endianness of the platform producing the data
Generated from these locations:
- Enum
Endiannessin the fileSchema.fbs:536
Variants§
Implementations§
Source§impl Endianness
impl Endianness
Sourcepub const ENUM_VALUES: [Self; 2]
pub const ENUM_VALUES: [Self; 2]
Array containing all valid variants of Endianness
Trait Implementations§
Source§impl Clone for Endianness
impl Clone for Endianness
Source§fn clone(&self) -> Endianness
fn clone(&self) -> Endianness
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§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
Source§impl From<Endianness> for i16
impl From<Endianness> for i16
Source§fn from(value: Endianness) -> Self
fn from(value: Endianness) -> Self
Converts to this type from the input type.
Source§impl Hash for Endianness
impl Hash for Endianness
Source§impl Ord for Endianness
impl Ord for Endianness
Source§fn cmp(&self, other: &Endianness) -> Ordering
fn cmp(&self, other: &Endianness) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for Endianness
impl PartialEq for Endianness
Source§impl PartialOrd for Endianness
impl PartialOrd for Endianness
Source§impl Serialize for Endianness
impl Serialize for Endianness
Source§impl TryFrom<i16> for Endianness
impl TryFrom<i16> for Endianness
Source§type Error = UnknownEnumTagKind
type Error = UnknownEnumTagKind
The type returned in the event of a conversion error.
impl Copy for Endianness
impl Eq for Endianness
impl StructuralPartialEq for Endianness
impl VectorWrite<Endianness> for Endianness
§Safety
The planus compiler generates implementations that initialize
the bytes in write_values.
impl WriteAs<Endianness> for Endianness
impl WriteAsDefault<Endianness, Endianness> for Endianness
impl WriteAsOptional<Endianness> for Endianness
Auto Trait Implementations§
impl Freeze for Endianness
impl RefUnwindSafe for Endianness
impl Send for Endianness
impl Sync for Endianness
impl Unpin 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,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<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.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more