[][src]Struct structview::U16

pub struct U16<BO>(_, _);

View of an u16 value.

Implementations

impl<BO: ByteOrder> U16<BO>[src]

pub fn to_int(&self) -> u16[src]

Return the viewed integer value.

Calling this function incurs some runtime cost as the raw bytes have to be parsed according to the view's endianess.

Trait Implementations

impl<BO: Clone> Clone for U16<BO>[src]

impl<BO: Copy> Copy for U16<BO>[src]

impl<BO: Debug> Debug for U16<BO>[src]

impl<BO: ByteOrder> Display for U16<BO>[src]

impl<BO: Eq> Eq for U16<BO>[src]

impl<BO: ByteOrder> From<U16<BO>> for u16[src]

impl<BO: Hash> Hash for U16<BO>[src]

impl<BO: PartialEq> PartialEq<U16<BO>> for U16<BO>[src]

impl<BO> StructuralEq for U16<BO>[src]

impl<BO> StructuralPartialEq for U16<BO>[src]

impl<BO: Copy> View for U16<BO>[src]

Auto Trait Implementations

impl<BO> RefUnwindSafe for U16<BO> where
    BO: RefUnwindSafe

impl<BO> Send for U16<BO> where
    BO: Send

impl<BO> Sync for U16<BO> where
    BO: Sync

impl<BO> Unpin for U16<BO> where
    BO: Unpin

impl<BO> UnwindSafe for U16<BO> where
    BO: UnwindSafe

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[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.