pub struct BitFieldImpl<TOwner, Shift, Mask> { /* private fields */ }Expand description
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§
Source§impl<TOwner, TShift, TMask> BitFieldTrait for BitFieldImpl<TOwner, TShift, TMask>
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.
impl<TOwner, TShift, TMask> BitFieldTrait for BitFieldImpl<TOwner, TShift, TMask>
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> Freeze for BitFieldImpl<TOwner, Shift, Mask>
impl<TOwner, Shift, Mask> RefUnwindSafe for BitFieldImpl<TOwner, Shift, Mask>
impl<TOwner, Shift, Mask> Send for BitFieldImpl<TOwner, Shift, Mask>
impl<TOwner, Shift, Mask> Sync for BitFieldImpl<TOwner, Shift, Mask>
impl<TOwner, Shift, Mask> Unpin for BitFieldImpl<TOwner, Shift, Mask>
impl<TOwner, Shift, Mask> UnwindSafe for BitFieldImpl<TOwner, Shift, Mask>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more