Struct object::endian::U32Bytes [−][src]
An unaligned u32
value with an externally specified endianness of type E
.
Implementations
impl<E: Endian> U32Bytes<E>
[src][−]
pub fn new(e: E, n: u32) -> Self
[src][−]
Construct a new value given a native endian value.
pub fn get(self, e: E) -> u32
[src][−]
Return the value as a native endian value.
pub fn set(&mut self, e: E, n: u32)
[src][−]
Set the value given a native endian value.
Trait Implementations
impl<E: Clone + Endian> Clone for U32Bytes<E>
[src][+]
impl<E: Copy + Endian> Copy for U32Bytes<E>
[src]
impl<E: Endian> Debug for U32Bytes<E>
[src][+]
impl<E: Default + Endian> Default for U32Bytes<E>
[src][+]
impl<E: Eq + Endian> Eq for U32Bytes<E>
[src]
impl<E: Hash + Endian> Hash for U32Bytes<E>
[src][+]
impl<E: Ord + Endian> Ord for U32Bytes<E>
[src][+]
impl<E: PartialEq + Endian> PartialEq<U32Bytes<E>> for U32Bytes<E>
[src][+]
impl<E: PartialOrd + Endian> PartialOrd<U32Bytes<E>> for U32Bytes<E>
[src][+]
impl<E: Endian> Pod for U32Bytes<E>
[src]
impl<E: Endian> StructuralEq for U32Bytes<E>
[src]
impl<E: Endian> StructuralPartialEq for U32Bytes<E>
[src]
Auto Trait Implementations
impl<E> Send for U32Bytes<E> where
E: Send,
E: Send,
impl<E> Sync for U32Bytes<E> where
E: Sync,
E: Sync,
impl<E> Unpin for U32Bytes<E> where
E: Unpin,
E: Unpin,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> From<T> for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src][+]
T: Clone,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,