pub struct NativeEndian<T>(pub T);Expand description
A wrapper type for native-endian integer parsing.
Notice that this encoding is not portable across different platforms with different endianness. Thus this wrapper should not be used for data that needs to be shared across different platforms.
Tuple Fields§
§0: TTrait Implementations§
Source§impl<T: Clone> Clone for NativeEndian<T>
impl<T: Clone> Clone for NativeEndian<T>
Source§fn clone(&self) -> NativeEndian<T>
fn clone(&self) -> NativeEndian<T>
Returns a duplicate 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<T: Debug> Debug for NativeEndian<T>
impl<T: Debug> Debug for NativeEndian<T>
Source§impl<T: Default> Default for NativeEndian<T>
impl<T: Default> Default for NativeEndian<T>
Source§fn default() -> NativeEndian<T>
fn default() -> NativeEndian<T>
Returns the “default value” for a type. Read more
Source§impl FromByteArray for NativeEndian<f32>
impl FromByteArray for NativeEndian<f32>
Source§impl FromByteArray for NativeEndian<f64>
impl FromByteArray for NativeEndian<f64>
Source§impl FromByteArray for NativeEndian<i128>
impl FromByteArray for NativeEndian<i128>
Source§impl FromByteArray for NativeEndian<i16>
impl FromByteArray for NativeEndian<i16>
Source§impl FromByteArray for NativeEndian<i32>
impl FromByteArray for NativeEndian<i32>
Source§impl FromByteArray for NativeEndian<i64>
impl FromByteArray for NativeEndian<i64>
Source§impl FromByteArray for NativeEndian<i8>
impl FromByteArray for NativeEndian<i8>
Source§impl FromByteArray for NativeEndian<u128>
impl FromByteArray for NativeEndian<u128>
Source§impl FromByteArray for NativeEndian<u16>
impl FromByteArray for NativeEndian<u16>
Source§impl FromByteArray for NativeEndian<u32>
impl FromByteArray for NativeEndian<u32>
Source§impl FromByteArray for NativeEndian<u64>
impl FromByteArray for NativeEndian<u64>
Source§impl FromByteArray for NativeEndian<u8>
impl FromByteArray for NativeEndian<u8>
Source§impl<T: Hash> Hash for NativeEndian<T>
impl<T: Hash> Hash for NativeEndian<T>
Source§impl IntoByteArray for NativeEndian<f32>
impl IntoByteArray for NativeEndian<f32>
Source§impl IntoByteArray for NativeEndian<f64>
impl IntoByteArray for NativeEndian<f64>
Source§impl IntoByteArray for NativeEndian<i128>
impl IntoByteArray for NativeEndian<i128>
Source§impl IntoByteArray for NativeEndian<i16>
impl IntoByteArray for NativeEndian<i16>
Source§impl IntoByteArray for NativeEndian<i32>
impl IntoByteArray for NativeEndian<i32>
Source§impl IntoByteArray for NativeEndian<i64>
impl IntoByteArray for NativeEndian<i64>
Source§impl IntoByteArray for NativeEndian<i8>
impl IntoByteArray for NativeEndian<i8>
Source§impl IntoByteArray for NativeEndian<u128>
impl IntoByteArray for NativeEndian<u128>
Source§impl IntoByteArray for NativeEndian<u16>
impl IntoByteArray for NativeEndian<u16>
Source§impl IntoByteArray for NativeEndian<u32>
impl IntoByteArray for NativeEndian<u32>
Source§impl IntoByteArray for NativeEndian<u64>
impl IntoByteArray for NativeEndian<u64>
Source§impl IntoByteArray for NativeEndian<u8>
impl IntoByteArray for NativeEndian<u8>
Source§impl<T: Ord> Ord for NativeEndian<T>
impl<T: Ord> Ord for NativeEndian<T>
Source§fn cmp(&self, other: &NativeEndian<T>) -> Ordering
fn cmp(&self, other: &NativeEndian<T>) -> 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<T: PartialEq> PartialEq for NativeEndian<T>
impl<T: PartialEq> PartialEq for NativeEndian<T>
Source§impl<T: PartialOrd> PartialOrd for NativeEndian<T>
impl<T: PartialOrd> PartialOrd for NativeEndian<T>
impl<T: Copy> Copy for NativeEndian<T>
impl<T: Eq> Eq for NativeEndian<T>
impl<T> StructuralPartialEq for NativeEndian<T>
Auto Trait Implementations§
impl<T> Freeze for NativeEndian<T>where
T: Freeze,
impl<T> RefUnwindSafe for NativeEndian<T>where
T: RefUnwindSafe,
impl<T> Send for NativeEndian<T>where
T: Send,
impl<T> Sync for NativeEndian<T>where
T: Sync,
impl<T> Unpin for NativeEndian<T>where
T: Unpin,
impl<T> UnwindSafe for NativeEndian<T>where
T: UnwindSafe,
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