pub struct BigEndian<T: Swappable>(_);
Expand description

A wrapper to store data in big endian format

Trait Implementations§

source§

impl<T: Clone + Swappable> Clone for BigEndian<T>

source§

fn clone(&self) -> BigEndian<T>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<T: Debug + Swappable> Debug for BigEndian<T>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl From<f32> for BigEndian<f32>

source§

fn from(value: f32) -> Self

Converts to this type from the input type.
source§

impl From<f64> for BigEndian<f64>

source§

fn from(value: f64) -> Self

Converts to this type from the input type.
source§

impl From<i128> for BigEndian<i128>

source§

fn from(value: i128) -> Self

Converts to this type from the input type.
source§

impl From<i16> for BigEndian<i16>

source§

fn from(value: i16) -> Self

Converts to this type from the input type.
source§

impl From<i32> for BigEndian<i32>

source§

fn from(value: i32) -> Self

Converts to this type from the input type.
source§

impl From<i64> for BigEndian<i64>

source§

fn from(value: i64) -> Self

Converts to this type from the input type.
source§

impl From<isize> for BigEndian<isize>

source§

fn from(value: isize) -> Self

Converts to this type from the input type.
source§

impl From<u128> for BigEndian<u128>

source§

fn from(value: u128) -> Self

Converts to this type from the input type.
source§

impl From<u16> for BigEndian<u16>

source§

fn from(value: u16) -> Self

Converts to this type from the input type.
source§

impl From<u32> for BigEndian<u32>

source§

fn from(value: u32) -> Self

Converts to this type from the input type.
source§

impl From<u64> for BigEndian<u64>

source§

fn from(value: u64) -> Self

Converts to this type from the input type.
source§

impl From<usize> for BigEndian<usize>

source§

fn from(value: usize) -> Self

Converts to this type from the input type.
source§

impl Into<f32> for BigEndian<f32>

source§

fn into(self) -> f32

Converts this type into the (usually inferred) input type.
source§

impl Into<f64> for BigEndian<f64>

source§

fn into(self) -> f64

Converts this type into the (usually inferred) input type.
source§

impl Into<i128> for BigEndian<i128>

source§

fn into(self) -> i128

Converts this type into the (usually inferred) input type.
source§

impl Into<i16> for BigEndian<i16>

source§

fn into(self) -> i16

Converts this type into the (usually inferred) input type.
source§

impl Into<i32> for BigEndian<i32>

source§

fn into(self) -> i32

Converts this type into the (usually inferred) input type.
source§

impl Into<i64> for BigEndian<i64>

source§

fn into(self) -> i64

Converts this type into the (usually inferred) input type.
source§

impl Into<isize> for BigEndian<isize>

source§

fn into(self) -> isize

Converts this type into the (usually inferred) input type.
source§

impl Into<u128> for BigEndian<u128>

source§

fn into(self) -> u128

Converts this type into the (usually inferred) input type.
source§

impl Into<u16> for BigEndian<u16>

source§

fn into(self) -> u16

Converts this type into the (usually inferred) input type.
source§

impl Into<u32> for BigEndian<u32>

source§

fn into(self) -> u32

Converts this type into the (usually inferred) input type.
source§

impl Into<u64> for BigEndian<u64>

source§

fn into(self) -> u64

Converts this type into the (usually inferred) input type.
source§

impl Into<usize> for BigEndian<usize>

source§

fn into(self) -> usize

Converts this type into the (usually inferred) input type.
source§

impl<T: Copy + Swappable> Copy for BigEndian<T>

Auto Trait Implementations§

§

impl<T> RefUnwindSafe for BigEndian<T>where T: RefUnwindSafe,

§

impl<T> Send for BigEndian<T>where T: Send,

§

impl<T> Sync for BigEndian<T>where T: Sync,

§

impl<T> Unpin for BigEndian<T>where T: Unpin,

§

impl<T> UnwindSafe for BigEndian<T>where T: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.