Struct packed_struct::types::ReservedBits [] [src]

pub struct ReservedBits<V, B> { /* fields omitted */ }

Always packs into the associated bit value. Ignores the input when unpacking.

Trait Implementations

impl<V: Default, B: Default> Default for ReservedBits<V, B>
[src]

[src]

Returns the "default value" for a type. Read more

impl<V: Copy, B: Copy> Copy for ReservedBits<V, B>
[src]

impl<V: Clone, B: Clone> Clone for ReservedBits<V, B>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<V: PartialEq, B: PartialEq> PartialEq for ReservedBits<V, B>
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl<B> Debug for ReservedBits<BitZero, B>
[src]

[src]

Formats the value using the given formatter. Read more

impl<B> Display for ReservedBits<BitZero, B>
[src]

[src]

Formats the value using the given formatter. Read more

impl<B> Debug for ReservedBits<BitOne, B>
[src]

[src]

Formats the value using the given formatter. Read more

impl<B> Display for ReservedBits<BitOne, B>
[src]

[src]

Formats the value using the given formatter. Read more

impl<V, B> PackedStruct<<<B as NumberOfBits>::Bytes as NumberOfBytes>::AsBytes> for ReservedBits<V, B> where
    Self: Default,
    V: ReservedBitValue,
    B: NumberOfBits
[src]

[src]

Packs the structure into a byte array.

[src]

Unpacks the structure from a byte array.

impl<V, B> PackedStructInfo for ReservedBits<V, B> where
    B: NumberOfBits
[src]

[src]

Number of bits that this structure occupies when being packed.

impl<V, B> PackedStructSlice for ReservedBits<V, B> where
    Self: Default,
    V: ReservedBitValue,
    B: NumberOfBits
[src]

[src]

Pack the structure into an output buffer.

[src]

Unpack the structure from a buffer.

[src]

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

[src]

Pack the structure into a new byte vector.

Auto Trait Implementations

impl<V, B> Send for ReservedBits<V, B> where
    B: Send,
    V: Send

impl<V, B> Sync for ReservedBits<V, B> where
    B: Sync,
    V: Sync