[][src]Struct bytes_cast::unaligned::U16Le

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

Little-endian u16, without alignment requirement.

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

Implementations

impl U16Le[src]

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

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

Trait Implementations

impl BytesCast for U16Le[src]

impl Clone for U16Le[src]

impl Copy for U16Le[src]

impl Debug for U16Le[src]

impl Eq for U16Le[src]

impl From<u16> for U16Le[src]

Converts from native-endian

impl Hash for U16Le[src]

impl PartialEq<U16Le> for U16Le[src]

impl StructuralEq for U16Le[src]

impl StructuralPartialEq for U16Le[src]

Auto Trait Implementations

impl Send for U16Le[src]

impl Sync for U16Le[src]

impl Unpin for U16Le[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.