[−][src]Enum declio::ctx::Endian
The endianness, or byte order, of primitive types.
Variants
Big-endian (most-significant-byte first).
Little-endian (least-significant-byte first).
Implementations
impl Endian
[src]
pub const fn native() -> Self
[src]
The native endianness of the target architecture.
Warning - This should not be used for cross-platform I/O in general. While dealing with native-endian bytes is marginally more efficient, it may cause incompatibilities if the data is shared between multiple devices where the native byte orders are different.
pub const fn network() -> Self
[src]
"Network-endian", an alias for big-endian, the default endianness.
Trait Implementations
impl Clone for Endian
[src]
impl Copy for Endian
[src]
impl Debug for Endian
[src]
impl Decode<Endian> for u8
[src]
impl Decode<Endian> for u16
[src]
impl Decode<Endian> for f32
[src]
impl Decode<Endian> for f64
[src]
impl Decode<Endian> for u32
[src]
impl Decode<Endian> for u64
[src]
impl Decode<Endian> for u128
[src]
impl Decode<Endian> for i8
[src]
impl Decode<Endian> for i16
[src]
impl Decode<Endian> for i32
[src]
impl Decode<Endian> for i64
[src]
impl Decode<Endian> for i128
[src]
impl Default for Endian
[src]
impl Encode<Endian> for u8
[src]
impl Encode<Endian> for u16
[src]
impl Encode<Endian> for f32
[src]
impl Encode<Endian> for f64
[src]
impl Encode<Endian> for u32
[src]
impl Encode<Endian> for u64
[src]
impl Encode<Endian> for u128
[src]
impl Encode<Endian> for i8
[src]
impl Encode<Endian> for i16
[src]
impl Encode<Endian> for i32
[src]
impl Encode<Endian> for i64
[src]
impl Encode<Endian> for i128
[src]
impl PartialEq<Endian> for Endian
[src]
impl StructuralPartialEq for Endian
[src]
Auto Trait Implementations
impl RefUnwindSafe for Endian
impl Send for Endian
impl Sync for Endian
impl Unpin for Endian
impl UnwindSafe for Endian
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,