pub struct ISet(/* private fields */);Expand description
Keeps track of which fields were initialized, up to 64 fields
Implementations§
Source§impl ISet
impl ISet
Sourcepub fn are_all_set(&self, count: usize) -> bool
pub fn are_all_set(&self, count: usize) -> bool
Checks if all bits up to the given count are set.
Sourcepub fn is_any_set(&self) -> bool
pub fn is_any_set(&self) -> bool
Checks if any bit in the ISet is set.
Trait Implementations§
impl Copy for ISet
Auto Trait Implementations§
impl Freeze for ISet
impl RefUnwindSafe for ISet
impl Send for ISet
impl Sync for ISet
impl Unpin for ISet
impl UnwindSafe for ISet
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