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]
impl<V: Default, B: Default> Default for ReservedBits<V, B>
fn default() -> ReservedBits<V, B>
[src]
fn default() -> ReservedBits<V, B>
Returns the "default value" for a type. Read more
impl<V: Copy, B: Copy> Copy for ReservedBits<V, B>
[src]
impl<V: Copy, B: Copy> Copy for ReservedBits<V, B>
impl<V: Clone, B: Clone> Clone for ReservedBits<V, B>
[src]
impl<V: Clone, B: Clone> Clone for ReservedBits<V, B>
fn clone(&self) -> ReservedBits<V, B>
[src]
fn clone(&self) -> ReservedBits<V, B>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl<V: PartialEq, B: PartialEq> PartialEq for ReservedBits<V, B>
[src]
impl<V: PartialEq, B: PartialEq> PartialEq for ReservedBits<V, B>
fn eq(&self, other: &ReservedBits<V, B>) -> bool
[src]
fn eq(&self, other: &ReservedBits<V, B>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &ReservedBits<V, B>) -> bool
[src]
fn ne(&self, other: &ReservedBits<V, B>) -> bool
This method tests for !=
.
impl<B> Debug for ReservedBits<BitZero, B>
[src]
impl<B> Debug for ReservedBits<BitZero, B>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<B> Display for ReservedBits<BitZero, B>
[src]
impl<B> Display for ReservedBits<BitZero, B>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<B> Debug for ReservedBits<BitOne, B>
[src]
impl<B> Debug for ReservedBits<BitOne, B>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<B> Display for ReservedBits<BitOne, B>
[src]
impl<B> Display for ReservedBits<BitOne, B>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
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]
impl<V, B> PackedStruct<<<B as NumberOfBits>::Bytes as NumberOfBytes>::AsBytes> for ReservedBits<V, B> where
Self: Default,
V: ReservedBitValue,
B: NumberOfBits,
fn pack(&self) -> <<B as NumberOfBits>::Bytes as NumberOfBytes>::AsBytes
[src]
fn pack(&self) -> <<B as NumberOfBits>::Bytes as NumberOfBytes>::AsBytes
Packs the structure into a byte array.
fn unpack(
_src: &<<B as NumberOfBits>::Bytes as NumberOfBytes>::AsBytes
) -> Result<Self, PackingError>
[src]
fn unpack(
_src: &<<B as NumberOfBits>::Bytes as NumberOfBytes>::AsBytes
) -> Result<Self, PackingError>
Unpacks the structure from a byte array.
impl<V, B> PackedStructInfo for ReservedBits<V, B> where
B: NumberOfBits,
[src]
impl<V, B> PackedStructInfo for ReservedBits<V, B> where
B: NumberOfBits,
fn packed_bits() -> usize
[src]
fn packed_bits() -> usize
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]
impl<V, B> PackedStructSlice for ReservedBits<V, B> where
Self: Default,
V: ReservedBitValue,
B: NumberOfBits,
fn pack_to_slice(&self, output: &mut [u8]) -> Result<(), PackingError>
[src]
fn pack_to_slice(&self, output: &mut [u8]) -> Result<(), PackingError>
Pack the structure into an output buffer.
fn unpack_from_slice(_src: &[u8]) -> Result<Self, PackingError>
[src]
fn unpack_from_slice(_src: &[u8]) -> Result<Self, PackingError>
Unpack the structure from a buffer.
fn packed_bytes() -> usize
[src]
fn packed_bytes() -> usize
Number of bytes that this structure demands for packing or unpacking.
fn pack_to_vec(&self) -> Result<Vec<u8>, PackingError>
[src]
fn pack_to_vec(&self) -> Result<Vec<u8>, PackingError>
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> Send for ReservedBits<V, B> where
B: Send,
V: Send,
impl<V, B> Sync for ReservedBits<V, B> where
B: Sync,
V: Sync,
impl<V, B> Sync for ReservedBits<V, B> where
B: Sync,
V: Sync,