pub struct BigEndian<T: Scalar>(/* private fields */);
Expand description
A wrapper around raw big-endian bytes for some type.
Implementations§
Trait Implementations§
Source§impl<'de, T: Scalar> Deserialize<'de> for BigEndian<T>where
T::Raw: Deserialize<'de>,
impl<'de, T: Scalar> Deserialize<'de> for BigEndian<T>where
T::Raw: Deserialize<'de>,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<T: Scalar> FixedSize for BigEndian<T>
impl<T: Scalar> FixedSize for BigEndian<T>
Source§const RAW_BYTE_LEN: usize = T::RAW_BYTE_LEN
const RAW_BYTE_LEN: usize = T::RAW_BYTE_LEN
The raw size of this type, in bytes. Read more
Source§impl<T: Scalar + Copy + Ord + Eq> Ord for BigEndian<T>
impl<T: Scalar + Copy + Ord + Eq> Ord for BigEndian<T>
Source§impl<T: Scalar + Copy + PartialOrd + PartialEq> PartialOrd for BigEndian<T>
impl<T: Scalar + Copy + PartialOrd + PartialEq> PartialOrd for BigEndian<T>
impl<T> AnyBitPattern for BigEndian<T>
Available on crate feature
bytemuck
only.impl<T: Copy + Scalar> Copy for BigEndian<T>
impl<T: Eq + Scalar> Eq for BigEndian<T>
impl<T: Scalar> StructuralPartialEq for BigEndian<T>
Auto Trait Implementations§
impl<T> Freeze for BigEndian<T>
impl<T> RefUnwindSafe for BigEndian<T>
impl<T> Send for BigEndian<T>
impl<T> Sync for BigEndian<T>
impl<T> Unpin for BigEndian<T>
impl<T> UnwindSafe for BigEndian<T>
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
Source§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
Source§type Bits = T
type Bits = T
Self
must have the same layout as the specified Bits
except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern
.Source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self
.