pub struct StateSet { /* private fields */ }Expand description
A set of state indices in 0..capacity.
Implementations§
Source§impl StateSet
impl StateSet
Sourcepub fn capacity(&self) -> usize
pub fn capacity(&self) -> usize
The number of indices the set can hold (rounded up to a whole word).
Sourcepub fn union_with(&mut self, other: &StateSet)
pub fn union_with(&mut self, other: &StateSet)
Add every member of other.
Sourcepub fn difference_with(&mut self, other: &StateSet)
pub fn difference_with(&mut self, other: &StateSet)
Remove every member of other.
Sourcepub fn intersects(&self, other: &StateSet) -> bool
pub fn intersects(&self, other: &StateSet) -> bool
Whether the two sets share a member.
Sourcepub fn any_in_range(&self, lo: usize, hi: usize) -> bool
pub fn any_in_range(&self, lo: usize, hi: usize) -> bool
Whether any index in lo..=hi is a member.
Sourcepub fn to_vec_rev(&self) -> Vec<usize>
pub fn to_vec_rev(&self) -> Vec<usize>
Members in descending order (reverse document order).
Trait Implementations§
impl Eq for StateSet
impl StructuralPartialEq for StateSet
Auto Trait Implementations§
impl Forget for StateSet
impl Freeze for StateSet
impl Move for StateSet
impl RefUnwindSafe for StateSet
impl Send for StateSet
impl Sync for StateSet
impl Unpin for StateSet
impl UnsafeUnpin for StateSet
impl UnwindSafe for StateSet
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