[][src]Struct structview::I32

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

View of an i32 value.

Methods

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

pub fn to_int(&self) -> i32
[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: Copy> View for I32<BO>
[src]

fn view(data: &[u8]) -> Result<&Self, Error>
[src]

View data as a value of the implementing type. Read more

impl<BO: ByteOrder> From<I32<BO>> for i32
[src]

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

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

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

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

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

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

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

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

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

Auto Trait Implementations

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

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

Blanket Implementations

impl<T> From for T
[src]

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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