[][src]Struct structview::I16

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

View of an i16 value.

Implementations

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

pub fn to_int(&self) -> i16[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 I16<BO>[src]

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

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

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

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

impl<BO: ByteOrder> From<I16<BO>> for i16[src]

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

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

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

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

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

Auto Trait Implementations

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

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

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

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

impl<BO> UnwindSafe for I16<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.