pub struct BitInit<'a> { /* private fields */ }Implementations§
Source§impl<'a> BitInit<'a>
impl<'a> BitInit<'a>
Sourcepub fn is_var_bit(self) -> bool
pub fn is_var_bit(self) -> bool
Returns true if this bit is a variable reference (e.g., lda{17})
rather than a literal 0/1.
Sourcepub fn as_var_bit(self) -> Option<(&'a str, usize)>
pub fn as_var_bit(self) -> Option<(&'a str, usize)>
If this bit is a variable reference, returns (field_name, bit_index).
For example, lda{17} returns Some(("lda", 17)).
Sourcepub fn as_literal(self) -> Option<bool>
pub fn as_literal(self) -> Option<bool>
If this bit is a literal 0/1, returns its boolean value.
Returns None for variable references.
Trait Implementations§
impl<'a> Copy for BitInit<'a>
impl<'a> Eq for BitInit<'a>
impl<'a> StructuralPartialEq for BitInit<'a>
Auto Trait Implementations§
impl<'a> Freeze for BitInit<'a>
impl<'a> RefUnwindSafe for BitInit<'a>
impl<'a> !Send for BitInit<'a>
impl<'a> !Sync for BitInit<'a>
impl<'a> Unpin for BitInit<'a>
impl<'a> UnwindSafe for BitInit<'a>
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