[][src]Struct bytes_cast::unaligned::I32Ne

#[repr(transparent)]pub struct I32Ne(_);

CPU-native-endian i32, without alignment requirement.

Implements the BytesCast trait to reinterpret &[u8] byte slices, and the From and Into traits to convert to and from i32.

The byte order depends on the target CPU architecture.

Implementations

impl I32Ne[src]

Converts to native-endian. Same as .into(), but .into() may need a type annotation.

pub fn get(self) -> i32[src]

Trait Implementations

impl BytesCast for I32Ne[src]

impl Clone for I32Ne[src]

impl Copy for I32Ne[src]

impl Debug for I32Ne[src]

impl Eq for I32Ne[src]

impl From<i32> for I32Ne[src]

Converts from native-endian

impl Hash for I32Ne[src]

impl PartialEq<I32Ne> for I32Ne[src]

impl StructuralEq for I32Ne[src]

impl StructuralPartialEq for I32Ne[src]

Auto Trait Implementations

impl Send for I32Ne[src]

impl Sync for I32Ne[src]

impl Unpin for I32Ne[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.