pub struct Field<Bits> {
pub name: &'static str,
pub start_bit: Bits,
pub end_bit: Bits,
pub mask: Bits,
pub value: Bits,
pub is_counter: bool,
}Expand description
A struct defining the parts of a field. This struct is automatically constructed via the
bitfield macro.
Fields§
§name: &'static str§start_bit: Bits§end_bit: Bits§mask: Bits§value: Bits§is_counter: boolTrait Implementations§
impl<Bits: Copy> Copy for Field<Bits>
Auto Trait Implementations§
impl<Bits> Freeze for Field<Bits>where
Bits: Freeze,
impl<Bits> RefUnwindSafe for Field<Bits>where
Bits: RefUnwindSafe,
impl<Bits> Send for Field<Bits>where
Bits: Send,
impl<Bits> Sync for Field<Bits>where
Bits: Sync,
impl<Bits> Unpin for Field<Bits>where
Bits: Unpin,
impl<Bits> UnwindSafe for Field<Bits>where
Bits: UnwindSafe,
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