[][src]Struct mju_bits::bitfield::BitFieldImpl

pub struct BitFieldImpl<TOwner, Shift, Mask> { /* fields omitted */ }

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]

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.

type Owner = TOwner

The owner, typically a Storage, bound to this bit field

Auto Trait Implementations

impl<TOwner, Shift, Mask> Send for BitFieldImpl<TOwner, Shift, Mask> where
    Mask: Send,
    Shift: Send,
    TOwner: Send

impl<TOwner, Shift, Mask> Sync for BitFieldImpl<TOwner, Shift, Mask> where
    Mask: Sync,
    Shift: Sync,
    TOwner: Sync

impl<TOwner, Shift, Mask> Unpin for BitFieldImpl<TOwner, Shift, Mask> where
    Mask: Unpin,
    Shift: Unpin,
    TOwner: Unpin

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

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]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.