[−][src]Struct mju_bits::bitfield::BitFieldImpl
Marker type representing an owned bitfield. TOwner
is the owning type of the
bitfield. Shift
and Mask
are typenum::Unsigned
types representing the shift and mask
values used to access the bitfield. These are both converted to constants in the BitFieldTrait
implemented for this struct.
While this type can be used directly, it is more convenient to use the BitField
type
alias to define a bit range rather than the lower-level shift and mask.
Trait Implementations
impl<TOwner, TShift, TMask> BitFieldTrait for BitFieldImpl<TOwner, TShift, TMask> where
TShift: Unsigned,
TMask: Unsigned,
[src]
TShift: Unsigned,
TMask: Unsigned,
Implementation for BitFieldImpl
explicitly converts the typenum shift and mask calculations
into constants. Forcing the conversion here prevents infinite recursion by the compiler when
these values are used by Storage
to provide access to the field.
Auto Trait Implementations
impl<TOwner, Shift, Mask> Send for BitFieldImpl<TOwner, Shift, Mask> where
Mask: Send,
Shift: Send,
TOwner: Send,
Mask: Send,
Shift: Send,
TOwner: Send,
impl<TOwner, Shift, Mask> Sync for BitFieldImpl<TOwner, Shift, Mask> where
Mask: Sync,
Shift: Sync,
TOwner: Sync,
Mask: Sync,
Shift: Sync,
TOwner: Sync,
impl<TOwner, Shift, Mask> Unpin for BitFieldImpl<TOwner, Shift, Mask> where
Mask: Unpin,
Shift: Unpin,
TOwner: Unpin,
Mask: Unpin,
Shift: Unpin,
TOwner: Unpin,
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,
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> Same<T> for T
[src]
type Output = T
Should always be Self
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.
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>,