Struct rupta::pts_set::points_to::HybridPointsToSet
source · pub struct HybridPointsToSet<T> { /* private fields */ }Expand description
Hybrid implementation of points to set, which uses an explicit array for small sets, and a bit vector for large sets.
Trait Implementations§
source§impl<T: Clone> Clone for HybridPointsToSet<T>
impl<T: Clone> Clone for HybridPointsToSet<T>
source§fn clone(&self) -> HybridPointsToSet<T>
fn clone(&self) -> HybridPointsToSet<T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl<T: Idx> Debug for HybridPointsToSet<T>
impl<T: Idx> Debug for HybridPointsToSet<T>
source§impl<'a, T: Idx> IntoIterator for &'a HybridPointsToSet<T>
impl<'a, T: Idx> IntoIterator for &'a HybridPointsToSet<T>
IntoIterator
source§impl<T: Idx> PointsToSet<T> for HybridPointsToSet<T>
impl<T: Idx> PointsToSet<T> for HybridPointsToSet<T>
source§fn superset(&self, other: &HybridPointsToSet<T>) -> bool
fn superset(&self, other: &HybridPointsToSet<T>) -> bool
Is self is a superset of other?
source§fn insert(&mut self, elem: T) -> bool
fn insert(&mut self, elem: T) -> bool
Adds elem to this set, returns true if n was not already in this set.
fn new() -> Self
fn is_empty(&self) -> bool
fn remove(&mut self, elem: T) -> bool
fn union(&mut self, other: &HybridPointsToSet<T>) -> bool
fn subtract(&mut self, other: &HybridPointsToSet<T>) -> bool
fn intersect(&mut self, other: &HybridPointsToSet<T>) -> bool
type Iter<'a> = HybridIter<'a, T>
fn iter(&self) -> HybridIter<'_, T> ⓘ
Auto Trait Implementations§
impl<T> RefUnwindSafe for HybridPointsToSet<T>where
T: RefUnwindSafe,
impl<T> Send for HybridPointsToSet<T>where
T: Send,
impl<T> Sync for HybridPointsToSet<T>where
T: Sync,
impl<T> Unpin for HybridPointsToSet<T>where
T: Unpin,
impl<T> UnwindSafe for HybridPointsToSet<T>where
T: 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