pub struct BitsetBuilder { /* private fields */ }Expand description
Builder for bitset types.
Implementations§
Source§impl BitsetBuilder
impl BitsetBuilder
Sourcepub fn field(
self,
name: impl Into<String>,
position: u16,
bitcount: u8,
holder_type: u8,
) -> Self
pub fn field( self, name: impl Into<String>, position: u16, bitcount: u8, holder_type: u8, ) -> Self
Adds a bitfield.
Sourcepub fn build_minimal(&self) -> MinimalBitsetType
pub fn build_minimal(&self) -> MinimalBitsetType
Builds a MinimalBitsetType.
Sourcepub fn build_complete(&self) -> CompleteBitsetType
pub fn build_complete(&self) -> CompleteBitsetType
Builds a CompleteBitsetType (with names + annotation placeholders).
Auto Trait Implementations§
impl Freeze for BitsetBuilder
impl RefUnwindSafe for BitsetBuilder
impl Send for BitsetBuilder
impl Sync for BitsetBuilder
impl Unpin for BitsetBuilder
impl UnsafeUnpin for BitsetBuilder
impl UnwindSafe for BitsetBuilder
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