[−][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]
pub fn clone(&self) -> ReservedBits<V, B>
[src]
pub 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]
pub fn default() -> ReservedBits<V, B>
[src]
impl<B> Display for ReservedBits<BitZero, B>
[src]
impl<B> Display for ReservedBits<BitOne, B>
[src]
impl<V: Eq, B: Eq> Eq for ReservedBits<V, B>
[src]
impl<V: Hash, B: Hash> Hash for ReservedBits<V, B>
[src]
pub fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<V, B> PackedStruct for ReservedBits<V, B> where
Self: Default,
V: ReservedBitValue,
B: NumberOfBits,
[src]
Self: Default,
V: ReservedBitValue,
B: NumberOfBits,
type ByteArray = <<B as NumberOfBits>::Bytes as NumberOfBytes>::AsBytes
pub fn pack(
&self
) -> PackingResult<<<B as NumberOfBits>::Bytes as NumberOfBytes>::AsBytes>
[src]
&self
) -> PackingResult<<<B as NumberOfBits>::Bytes as NumberOfBytes>::AsBytes>
pub 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,
pub fn packed_bits() -> usize
[src]
impl<V: PartialEq, B: PartialEq> PartialEq<ReservedBits<V, B>> for ReservedBits<V, B>
[src]
pub fn eq(&self, other: &ReservedBits<V, B>) -> bool
[src]
pub fn ne(&self, other: &ReservedBits<V, B>) -> bool
[src]
impl<V, B> StructuralEq for ReservedBits<V, B>
[src]
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> 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>,