pub trait RowSet: Send + Sync {
// Required methods
fn len(&self) -> usize;
fn is_full(&self) -> bool;
fn iter(&self) -> RowIdIter<'_>;
fn intersect(&self, other: &Self) -> Self
where Self: Sized;
fn union(&self, other: &Self) -> Self
where Self: Sized;
fn difference(&self, other: &Self) -> Self
where Self: Sized;
// Provided method
fn is_empty(&self) -> bool { ... }
}Expand description
Abstract set of row identifiers that supports basic set algebra.
Required Methods§
Sourcefn intersect(&self, other: &Self) -> Selfwhere
Self: Sized,
fn intersect(&self, other: &Self) -> Selfwhere
Self: Sized,
Returns the intersection between this set and other.
Sourcefn union(&self, other: &Self) -> Selfwhere
Self: Sized,
fn union(&self, other: &Self) -> Selfwhere
Self: Sized,
Returns the union between this set and other.
Sourcefn difference(&self, other: &Self) -> Selfwhere
Self: Sized,
fn difference(&self, other: &Self) -> Selfwhere
Self: Sized,
Returns the relative complement (self \ other).
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".