[−][src]Struct packed_struct::types::ReservedBits
Always packs into the associated bit value. Ignores the input when unpacking.
Trait Implementations
impl<V: Clone, B: Clone> Clone for ReservedBits<V, B>
[src]
fn clone(&self) -> ReservedBits<V, B>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<V: Copy, B: Copy> Copy for ReservedBits<V, B>
[src]
impl<B> Debug for ReservedBits<BitZero, B>
[src]
impl<B> Debug for ReservedBits<BitOne, B>
[src]
impl<V: Default, B: Default> Default for ReservedBits<V, B>
[src]
fn default() -> ReservedBits<V, B>
[src]
impl<'de, V, B> Deserialize<'de> for ReservedBits<V, B> where
V: Deserialize<'de>,
[src]
V: Deserialize<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl<B> Display for ReservedBits<BitZero, B>
[src]
impl<B> Display for ReservedBits<BitOne, B>
[src]
impl<V, B> PackedStruct<<<B as NumberOfBits>::Bytes as NumberOfBytes>::AsBytes> for ReservedBits<V, B> where
Self: Default,
V: ReservedBitValue,
B: NumberOfBits,
[src]
Self: Default,
V: ReservedBitValue,
B: NumberOfBits,
fn pack(&self) -> <<B as NumberOfBits>::Bytes as NumberOfBytes>::AsBytes
[src]
fn unpack(
_src: &<<B as NumberOfBits>::Bytes as NumberOfBytes>::AsBytes
) -> Result<Self, PackingError>
[src]
_src: &<<B as NumberOfBits>::Bytes as NumberOfBytes>::AsBytes
) -> Result<Self, PackingError>
impl<V, B> PackedStructInfo for ReservedBits<V, B> where
B: NumberOfBits,
[src]
B: NumberOfBits,
fn packed_bits() -> usize
[src]
impl<V, B> PackedStructSlice for ReservedBits<V, B> where
Self: Default,
V: ReservedBitValue,
B: NumberOfBits,
[src]
Self: Default,
V: ReservedBitValue,
B: NumberOfBits,
fn pack_to_slice(&self, output: &mut [u8]) -> Result<(), PackingError>
[src]
fn unpack_from_slice(_src: &[u8]) -> Result<Self, PackingError>
[src]
fn packed_bytes() -> usize
[src]
fn pack_to_vec(&self) -> Result<Vec<u8>, PackingError>
[src]
impl<V: PartialEq, B: PartialEq> PartialEq<ReservedBits<V, B>> for ReservedBits<V, B>
[src]
fn eq(&self, other: &ReservedBits<V, B>) -> bool
[src]
fn ne(&self, other: &ReservedBits<V, B>) -> bool
[src]
impl<V, B> Serialize for ReservedBits<V, B> where
V: Serialize,
[src]
V: Serialize,
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<V, B> StructuralPartialEq for ReservedBits<V, B>
[src]
Auto Trait Implementations
impl<V, B> RefUnwindSafe for ReservedBits<V, B> where
B: RefUnwindSafe,
V: RefUnwindSafe,
B: RefUnwindSafe,
V: RefUnwindSafe,
impl<V, B> Send for ReservedBits<V, B> where
B: Send,
V: Send,
B: Send,
V: Send,
impl<V, B> Sync for ReservedBits<V, B> where
B: Sync,
V: Sync,
B: Sync,
V: Sync,
impl<V, B> Unpin for ReservedBits<V, B> where
B: Unpin,
V: Unpin,
B: Unpin,
V: Unpin,
impl<V, B> UnwindSafe for ReservedBits<V, B> where
B: UnwindSafe,
V: UnwindSafe,
B: UnwindSafe,
V: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut Tⓘ
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,