Enum tarrasque::Endianness
source · pub enum Endianness {
Big,
Little,
}
Expand description
A byte order.
Variants
Big
The big-endian byte order.
Little
The little-endian byte order.
Trait Implementations
sourceimpl Clone for Endianness
impl Clone for Endianness
sourcefn clone(&self) -> Endianness
fn clone(&self) -> Endianness
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for Endianness
impl Debug for Endianness
sourceimpl<'s> Extract<'s, Endianness> for f32
impl<'s> Extract<'s, Endianness> for f32
sourcefn extract(
stream: &mut Stream<'s>,
endianness: Endianness
) -> ExtractResult<'s, Self>
fn extract(
stream: &mut Stream<'s>,
endianness: Endianness
) -> ExtractResult<'s, Self>
Extracts a value of this type from the supplied stream of bytes. Read more
sourceimpl<'s> Extract<'s, Endianness> for f64
impl<'s> Extract<'s, Endianness> for f64
sourcefn extract(
stream: &mut Stream<'s>,
endianness: Endianness
) -> ExtractResult<'s, Self>
fn extract(
stream: &mut Stream<'s>,
endianness: Endianness
) -> ExtractResult<'s, Self>
Extracts a value of this type from the supplied stream of bytes. Read more
sourceimpl<'s> Extract<'s, Endianness> for i16
impl<'s> Extract<'s, Endianness> for i16
sourcefn extract(
stream: &mut Stream<'s>,
endianness: Endianness
) -> ExtractResult<'s, Self>
fn extract(
stream: &mut Stream<'s>,
endianness: Endianness
) -> ExtractResult<'s, Self>
Extracts a value of this type from the supplied stream of bytes. Read more
sourceimpl<'s> Extract<'s, Endianness> for i32
impl<'s> Extract<'s, Endianness> for i32
sourcefn extract(
stream: &mut Stream<'s>,
endianness: Endianness
) -> ExtractResult<'s, Self>
fn extract(
stream: &mut Stream<'s>,
endianness: Endianness
) -> ExtractResult<'s, Self>
Extracts a value of this type from the supplied stream of bytes. Read more
sourceimpl<'s> Extract<'s, Endianness> for i64
impl<'s> Extract<'s, Endianness> for i64
sourcefn extract(
stream: &mut Stream<'s>,
endianness: Endianness
) -> ExtractResult<'s, Self>
fn extract(
stream: &mut Stream<'s>,
endianness: Endianness
) -> ExtractResult<'s, Self>
Extracts a value of this type from the supplied stream of bytes. Read more
sourceimpl<'s> Extract<'s, Endianness> for u16
impl<'s> Extract<'s, Endianness> for u16
sourcefn extract(
stream: &mut Stream<'s>,
endianness: Endianness
) -> ExtractResult<'s, Self>
fn extract(
stream: &mut Stream<'s>,
endianness: Endianness
) -> ExtractResult<'s, Self>
Extracts a value of this type from the supplied stream of bytes. Read more
sourceimpl<'s> Extract<'s, Endianness> for u32
impl<'s> Extract<'s, Endianness> for u32
sourcefn extract(
stream: &mut Stream<'s>,
endianness: Endianness
) -> ExtractResult<'s, Self>
fn extract(
stream: &mut Stream<'s>,
endianness: Endianness
) -> ExtractResult<'s, Self>
Extracts a value of this type from the supplied stream of bytes. Read more
sourceimpl<'s> Extract<'s, Endianness> for u64
impl<'s> Extract<'s, Endianness> for u64
sourcefn extract(
stream: &mut Stream<'s>,
endianness: Endianness
) -> ExtractResult<'s, Self>
fn extract(
stream: &mut Stream<'s>,
endianness: Endianness
) -> ExtractResult<'s, Self>
Extracts a value of this type from the supplied stream of bytes. Read more
sourceimpl PartialEq<Endianness> for Endianness
impl PartialEq<Endianness> for Endianness
sourcefn eq(&self, other: &Endianness) -> bool
fn eq(&self, other: &Endianness) -> bool
impl Copy for Endianness
impl Eq for Endianness
impl StructuralEq for Endianness
impl StructuralPartialEq for Endianness
Auto Trait Implementations
impl RefUnwindSafe for Endianness
impl Send for Endianness
impl Sync for Endianness
impl Unpin for Endianness
impl UnwindSafe for Endianness
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more