Struct packed_struct::types::MsbInteger[][src]

pub struct MsbInteger<T, B, I>(_, _, _);

A wrapper that packages the integer as a MSB packaged byte array. Usually invoked using code generation.

Trait Implementations

impl<T, B, I> Deref for MsbInteger<T, B, I>
[src]

The resulting type after dereferencing.

Important traits for &'a mut R

Dereferences the value.

impl<T, B, I> From<I> for MsbInteger<T, B, I>
[src]

Performs the conversion.

impl<T, B, I> Debug for MsbInteger<T, B, I> where
    I: Debug
[src]

Formats the value using the given formatter. Read more

impl<T, B, I> Display for MsbInteger<T, B, I> where
    I: Display
[src]

Formats the value using the given formatter. Read more

impl<T, B, I> PackedStruct<<<B as NumberOfBits>::Bytes as NumberOfBytes>::AsBytes> for MsbInteger<T, B, I> where
    B: NumberOfBits,
    I: SizedInteger<T, B>, 
[src]

Packs the structure into a byte array.

Unpacks the structure from a byte array.

impl<T, B, I> PackedStructInfo for MsbInteger<T, B, I> where
    B: NumberOfBits
[src]

Number of bits that this structure occupies when being packed.

impl<T, B, I> PackedStructSlice for MsbInteger<T, B, I> where
    B: NumberOfBits,
    I: SizedInteger<T, B>, 
[src]

Pack the structure into an output buffer.

Unpack the structure from a buffer.

Number of bytes that this structure demands for packing or unpacking.

Pack the structure into a new byte vector.

Auto Trait Implementations

impl<T, B, I> Send for MsbInteger<T, B, I> where
    B: Send,
    I: Send,
    T: Send

impl<T, B, I> Sync for MsbInteger<T, B, I> where
    B: Sync,
    I: Sync,
    T: Sync