pub struct FieldMetadata<Base: Unsigned> {
pub name: &'static str,
pub high_bit: u32,
pub low_bit: u32,
pub default: Base,
}Expand description
The metadata of a (non-reserved) bitfield.
The iterator of a layout! type will have an associated item type of
(Base, &'static FieldMetadata<Base>).
Fields§
§name: &'static strThe name of the bitfield.
high_bit: u32The high bit of the bitfield.
low_bit: u32The low bit of the bitfield.
default: BaseThe default value of the bitfield.
Trait Implementations§
Auto Trait Implementations§
impl<Base> Freeze for FieldMetadata<Base>where
Base: Freeze,
impl<Base> RefUnwindSafe for FieldMetadata<Base>where
Base: RefUnwindSafe,
impl<Base> Send for FieldMetadata<Base>where
Base: Send,
impl<Base> Sync for FieldMetadata<Base>where
Base: Sync,
impl<Base> Unpin for FieldMetadata<Base>where
Base: Unpin,
impl<Base> UnsafeUnpin for FieldMetadata<Base>where
Base: UnsafeUnpin,
impl<Base> UnwindSafe for FieldMetadata<Base>where
Base: 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