Skip to main content

BigEndian

Struct BigEndian 

Source
pub struct BigEndian<T: Primitive>(/* private fields */);

Implementations§

Source§

impl<T: Primitive> BigEndian<T>

Source

pub const fn new(value: T) -> Self
where T: Primitive,

Source

pub const fn get(self) -> T
where T: Primitive,

Trait Implementations§

Source§

impl<T: Primitive + Binary> Binary for BigEndian<T>

Source§

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

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

impl<T: Clone + Primitive> Clone for BigEndian<T>
where T::BigEndian: Clone,

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl<T: Copy + Primitive> Copy for BigEndian<T>
where T::BigEndian: Copy,

Source§

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

Source§

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

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

impl<T: Default + Primitive> Default for BigEndian<T>
where T::BigEndian: Default,

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Deref for BigEndian<i16>

Source§

type Target = <i16 as Primitive>::BigEndian

The resulting type after dereferencing.
Source§

fn deref(&self) -> &Self::Target

Dereferences the value.
Source§

impl Deref for BigEndian<i32>

Source§

type Target = <i32 as Primitive>::BigEndian

The resulting type after dereferencing.
Source§

fn deref(&self) -> &Self::Target

Dereferences the value.
Source§

impl Deref for BigEndian<i64>

Source§

type Target = <i64 as Primitive>::BigEndian

The resulting type after dereferencing.
Source§

fn deref(&self) -> &Self::Target

Dereferences the value.
Source§

impl Deref for BigEndian<u16>

Source§

type Target = <u16 as Primitive>::BigEndian

The resulting type after dereferencing.
Source§

fn deref(&self) -> &Self::Target

Dereferences the value.
Source§

impl Deref for BigEndian<u32>

Source§

type Target = <u32 as Primitive>::BigEndian

The resulting type after dereferencing.
Source§

fn deref(&self) -> &Self::Target

Dereferences the value.
Source§

impl Deref for BigEndian<u64>

Source§

type Target = <u64 as Primitive>::BigEndian

The resulting type after dereferencing.
Source§

fn deref(&self) -> &Self::Target

Dereferences the value.
Source§

impl<T: Primitive + Display> Display for BigEndian<T>

Source§

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

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

impl<T: Eq + Primitive> Eq for BigEndian<T>
where T::BigEndian: Eq,

Source§

impl From<<i16 as Primitive>::BigEndian> for BigEndian<i16>

Source§

fn from(value: <i16 as Primitive>::BigEndian) -> Self

Converts to this type from the input type.
Source§

impl From<<i32 as Primitive>::BigEndian> for BigEndian<i32>

Source§

fn from(value: <i32 as Primitive>::BigEndian) -> Self

Converts to this type from the input type.
Source§

impl From<<i64 as Primitive>::BigEndian> for BigEndian<i64>

Source§

fn from(value: <i64 as Primitive>::BigEndian) -> Self

Converts to this type from the input type.
Source§

impl From<<u16 as Primitive>::BigEndian> for BigEndian<u16>

Source§

fn from(value: <u16 as Primitive>::BigEndian) -> Self

Converts to this type from the input type.
Source§

impl From<<u32 as Primitive>::BigEndian> for BigEndian<u32>

Source§

fn from(value: <u32 as Primitive>::BigEndian) -> Self

Converts to this type from the input type.
Source§

impl From<<u64 as Primitive>::BigEndian> for BigEndian<u64>

Source§

fn from(value: <u64 as Primitive>::BigEndian) -> Self

Converts to this type from the input type.
Source§

impl From<BigEndian<Affine2x2>> for Affine2x2

Source§

fn from(value: BigEndian<Affine2x2>) -> Self

Converts to this type from the input type.
Source§

impl From<BigEndian<F2Dot14>> for F2Dot14

Source§

fn from(value: BigEndian<F2Dot14>) -> Self

Converts to this type from the input type.
Source§

impl From<BigEndian<Fixed>> for Fixed

Source§

fn from(value: BigEndian<Fixed>) -> Self

Converts to this type from the input type.
Source§

impl From<BigEndian<LongDateTime>> for LongDateTime

Source§

fn from(value: BigEndian<LongDateTime>) -> Self

Converts to this type from the input type.
Source§

impl From<BigEndian<Version16Dot16>> for Version16Dot16

Source§

fn from(value: BigEndian<Version16Dot16>) -> Self

Converts to this type from the input type.
Source§

impl From<BigEndian<i16>> for i16

Source§

fn from(value: BigEndian<i16>) -> Self

Converts to this type from the input type.
Source§

impl From<BigEndian<i16>> for <i16 as Primitive>::BigEndian

Source§

fn from(value: BigEndian<i16>) -> Self

Converts to this type from the input type.
Source§

impl From<BigEndian<i32>> for i32

Source§

fn from(value: BigEndian<i32>) -> Self

Converts to this type from the input type.
Source§

impl From<BigEndian<i32>> for <i32 as Primitive>::BigEndian

Source§

fn from(value: BigEndian<i32>) -> Self

Converts to this type from the input type.
Source§

impl From<BigEndian<i64>> for i64

Source§

fn from(value: BigEndian<i64>) -> Self

Converts to this type from the input type.
Source§

impl From<BigEndian<i64>> for <i64 as Primitive>::BigEndian

Source§

fn from(value: BigEndian<i64>) -> Self

Converts to this type from the input type.
Source§

impl From<BigEndian<u16>> for u16

Source§

fn from(value: BigEndian<u16>) -> Self

Converts to this type from the input type.
Source§

impl From<BigEndian<u16>> for <u16 as Primitive>::BigEndian

Source§

fn from(value: BigEndian<u16>) -> Self

Converts to this type from the input type.
Source§

impl From<BigEndian<u24>> for u24

Source§

fn from(value: BigEndian<u24>) -> Self

Converts to this type from the input type.
Source§

impl From<BigEndian<u32>> for u32

Source§

fn from(value: BigEndian<u32>) -> Self

Converts to this type from the input type.
Source§

impl From<BigEndian<u32>> for <u32 as Primitive>::BigEndian

Source§

fn from(value: BigEndian<u32>) -> Self

Converts to this type from the input type.
Source§

impl From<BigEndian<u64>> for u64

Source§

fn from(value: BigEndian<u64>) -> Self

Converts to this type from the input type.
Source§

impl From<BigEndian<u64>> for <u64 as Primitive>::BigEndian

Source§

fn from(value: BigEndian<u64>) -> Self

Converts to this type from the input type.
Source§

impl<T: Primitive> From<T> for BigEndian<T>

Source§

fn from(value: T) -> Self

Converts to this type from the input type.
Source§

impl<T: Primitive + LowerExp> LowerExp for BigEndian<T>

Source§

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

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

impl<T: Primitive + LowerHex> LowerHex for BigEndian<T>

Source§

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

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

impl<T: Primitive + Octal> Octal for BigEndian<T>

Source§

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

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

impl<T: PartialEq + Primitive> PartialEq for BigEndian<T>
where T::BigEndian: PartialEq,

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl<T: PartialEq + Primitive> StructuralPartialEq for BigEndian<T>
where T::BigEndian: PartialEq,

Source§

impl<T: Primitive + UpperExp> UpperExp for BigEndian<T>

Source§

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

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

impl<T: Primitive + UpperHex> UpperHex for BigEndian<T>

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<T> Freeze for BigEndian<T>
where <T as Primitive>::BigEndian: Freeze,

§

impl<T> RefUnwindSafe for BigEndian<T>

§

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

§

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

§

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

§

impl<T> UnsafeUnpin for BigEndian<T>

§

impl<T> UnwindSafe for BigEndian<T>

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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 T
where 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> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

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

Source§

type Error = !

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

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

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

Source§

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.