Struct interval::interval_set::IntervalSet
source · pub struct IntervalSet<Bound: Width> { /* private fields */ }
Implementations§
source§impl<Bound: Width> IntervalSet<Bound>
impl<Bound: Width> IntervalSet<Bound>
source§impl<Bound> IntervalSet<Bound>
impl<Bound> IntervalSet<Bound>
pub fn interval_count(&self) -> usize
Trait Implementations§
source§impl<'a, 'b, Bound: Num + Width + Clone> Add<&'b Bound> for &'a IntervalSet<Bound>
impl<'a, 'b, Bound: Num + Width + Clone> Add<&'b Bound> for &'a IntervalSet<Bound>
§type Output = IntervalSet<Bound>
type Output = IntervalSet<Bound>
The resulting type after applying the
+
operator.source§impl<'b, Bound: Num + Width + Clone> Add<&'b Bound> for IntervalSet<Bound>
impl<'b, Bound: Num + Width + Clone> Add<&'b Bound> for IntervalSet<Bound>
§type Output = IntervalSet<Bound>
type Output = IntervalSet<Bound>
The resulting type after applying the
+
operator.source§impl<'a, 'b, Bound: Num + Width> Add<&'b IntervalSet<Bound>> for &'a IntervalSet<Bound>
impl<'a, 'b, Bound: Num + Width> Add<&'b IntervalSet<Bound>> for &'a IntervalSet<Bound>
§type Output = IntervalSet<Bound>
type Output = IntervalSet<Bound>
The resulting type after applying the
+
operator.source§fn add(self, other: &IntervalSet<Bound>) -> IntervalSet<Bound>
fn add(self, other: &IntervalSet<Bound>) -> IntervalSet<Bound>
Performs the
+
operation. Read moresource§impl<'b, Bound: Num + Width> Add<&'b IntervalSet<Bound>> for IntervalSet<Bound>
impl<'b, Bound: Num + Width> Add<&'b IntervalSet<Bound>> for IntervalSet<Bound>
§type Output = IntervalSet<Bound>
type Output = IntervalSet<Bound>
The resulting type after applying the
+
operator.source§fn add(self, other: &IntervalSet<Bound>) -> IntervalSet<Bound>
fn add(self, other: &IntervalSet<Bound>) -> IntervalSet<Bound>
Performs the
+
operation. Read moresource§impl<'a, Bound: Num + Width + Clone> Add<Bound> for &'a IntervalSet<Bound>
impl<'a, Bound: Num + Width + Clone> Add<Bound> for &'a IntervalSet<Bound>
§type Output = IntervalSet<Bound>
type Output = IntervalSet<Bound>
The resulting type after applying the
+
operator.source§fn add(self, other: Bound) -> IntervalSet<Bound>
fn add(self, other: Bound) -> IntervalSet<Bound>
Performs the
+
operation. Read moresource§impl<Bound: Num + Width + Clone> Add<Bound> for IntervalSet<Bound>
impl<Bound: Num + Width + Clone> Add<Bound> for IntervalSet<Bound>
§type Output = IntervalSet<Bound>
type Output = IntervalSet<Bound>
The resulting type after applying the
+
operator.source§fn add(self, other: Bound) -> IntervalSet<Bound>
fn add(self, other: Bound) -> IntervalSet<Bound>
Performs the
+
operation. Read moresource§impl<'a, Bound: Num + Width> Add<IntervalSet<Bound>> for &'a IntervalSet<Bound>
impl<'a, Bound: Num + Width> Add<IntervalSet<Bound>> for &'a IntervalSet<Bound>
§type Output = IntervalSet<Bound>
type Output = IntervalSet<Bound>
The resulting type after applying the
+
operator.source§fn add(self, other: IntervalSet<Bound>) -> IntervalSet<Bound>
fn add(self, other: IntervalSet<Bound>) -> IntervalSet<Bound>
Performs the
+
operation. Read moresource§impl<Bound: Num + Width> Add for IntervalSet<Bound>
impl<Bound: Num + Width> Add for IntervalSet<Bound>
§type Output = IntervalSet<Bound>
type Output = IntervalSet<Bound>
The resulting type after applying the
+
operator.source§fn add(self, other: IntervalSet<Bound>) -> IntervalSet<Bound>
fn add(self, other: IntervalSet<Bound>) -> IntervalSet<Bound>
Performs the
+
operation. Read moresource§impl<Bound> Bot for IntervalSet<Bound>
impl<Bound> Bot for IntervalSet<Bound>
fn bot() -> IntervalSet<Bound>
source§impl<Bound> Bounded for IntervalSet<Bound>
impl<Bound> Bounded for IntervalSet<Bound>
source§impl<Bound: Width + Num> Cardinality for IntervalSet<Bound>
impl<Bound: Width + Num> Cardinality for IntervalSet<Bound>
IsSingleton
and IsEmpty
are defined automatically in gcollections
.
source§impl<Bound: Clone + Width> Clone for IntervalSet<Bound>
impl<Bound: Clone + Width> Clone for IntervalSet<Bound>
source§fn clone(&self) -> IntervalSet<Bound>
fn clone(&self) -> IntervalSet<Bound>
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<Bound: Width> Collection for IntervalSet<Bound>
impl<Bound: Width> Collection for IntervalSet<Bound>
source§impl<Bound: Width + Num> Complement for IntervalSet<Bound>
impl<Bound: Width + Num> Complement for IntervalSet<Bound>
fn complement(&self) -> IntervalSet<Bound>
source§impl<Bound> Difference<Bound> for IntervalSet<Bound>
impl<Bound> Difference<Bound> for IntervalSet<Bound>
type Output = IntervalSet<Bound>
fn difference(&self, rhs: &Bound) -> IntervalSet<Bound>
source§impl<Bound: Width + Num> Difference for IntervalSet<Bound>
impl<Bound: Width + Num> Difference for IntervalSet<Bound>
type Output = IntervalSet<Bound>
fn difference(&self, rhs: &IntervalSet<Bound>) -> IntervalSet<Bound>
source§impl<Bound: Width + Num> Disjoint for IntervalSet<Bound>
impl<Bound: Width + Num> Disjoint for IntervalSet<Bound>
fn is_disjoint(&self, rhs: &IntervalSet<Bound>) -> bool
source§impl<Bound: Width + Num> Empty for IntervalSet<Bound>
impl<Bound: Width + Num> Empty for IntervalSet<Bound>
fn empty() -> IntervalSet<Bound>
source§impl<Bound> Entailment for IntervalSet<Bound>
impl<Bound> Entailment for IntervalSet<Bound>
fn entail(&self, other: &IntervalSet<Bound>) -> SKleene
source§impl<Bound> Extend<Interval<Bound>> for IntervalSet<Bound>
impl<Bound> Extend<Interval<Bound>> for IntervalSet<Bound>
source§fn extend<I>(&mut self, iterable: I)where
I: IntoIterator<Item = Interval<Bound>>,
fn extend<I>(&mut self, iterable: I)where
I: IntoIterator<Item = Interval<Bound>>,
Extends a collection with the contents of an iterator. Read more
source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one
)Extends a collection with exactly one element.
source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one
)Reserves capacity in a collection for the given number of additional elements. Read more
source§impl<Bound> Intersection<Bound> for IntervalSet<Bound>
impl<Bound> Intersection<Bound> for IntervalSet<Bound>
type Output = IntervalSet<Bound>
fn intersection(&self, rhs: &Bound) -> IntervalSet<Bound>
source§impl<Bound: Width + Num> Intersection for IntervalSet<Bound>
impl<Bound: Width + Num> Intersection for IntervalSet<Bound>
type Output = IntervalSet<Bound>
fn intersection(&self, rhs: &IntervalSet<Bound>) -> IntervalSet<Bound>
source§impl<'a, Bound: Width> IntoIterator for &'a IntervalSet<Bound>
impl<'a, Bound: Width> IntoIterator for &'a IntervalSet<Bound>
source§impl<'a, Bound: Width> IntoIterator for &'a mut IntervalSet<Bound>
impl<'a, Bound: Width> IntoIterator for &'a mut IntervalSet<Bound>
source§impl<Bound: Width> IntoIterator for IntervalSet<Bound>
impl<Bound: Width> IntoIterator for IntervalSet<Bound>
source§impl<Bound> Join for IntervalSet<Bound>
impl<Bound> Join for IntervalSet<Bound>
fn join(self, other: IntervalSet<Bound>) -> IntervalSet<Bound>
source§impl<Bound> Meet for IntervalSet<Bound>
impl<Bound> Meet for IntervalSet<Bound>
fn meet(self, other: IntervalSet<Bound>) -> IntervalSet<Bound>
source§impl<'a, 'b, Bound: Num + Width + Clone> Mul<&'b Bound> for &'a IntervalSet<Bound>
impl<'a, 'b, Bound: Num + Width + Clone> Mul<&'b Bound> for &'a IntervalSet<Bound>
§type Output = IntervalSet<Bound>
type Output = IntervalSet<Bound>
The resulting type after applying the
*
operator.source§impl<'b, Bound: Num + Width + Clone> Mul<&'b Bound> for IntervalSet<Bound>
impl<'b, Bound: Num + Width + Clone> Mul<&'b Bound> for IntervalSet<Bound>
§type Output = IntervalSet<Bound>
type Output = IntervalSet<Bound>
The resulting type after applying the
*
operator.source§impl<'a, 'b, Bound: Num + Width> Mul<&'b IntervalSet<Bound>> for &'a IntervalSet<Bound>
impl<'a, 'b, Bound: Num + Width> Mul<&'b IntervalSet<Bound>> for &'a IntervalSet<Bound>
§type Output = IntervalSet<Bound>
type Output = IntervalSet<Bound>
The resulting type after applying the
*
operator.source§fn mul(self, other: &IntervalSet<Bound>) -> IntervalSet<Bound>
fn mul(self, other: &IntervalSet<Bound>) -> IntervalSet<Bound>
Performs the
*
operation. Read moresource§impl<'b, Bound: Num + Width> Mul<&'b IntervalSet<Bound>> for IntervalSet<Bound>
impl<'b, Bound: Num + Width> Mul<&'b IntervalSet<Bound>> for IntervalSet<Bound>
§type Output = IntervalSet<Bound>
type Output = IntervalSet<Bound>
The resulting type after applying the
*
operator.source§fn mul(self, other: &IntervalSet<Bound>) -> IntervalSet<Bound>
fn mul(self, other: &IntervalSet<Bound>) -> IntervalSet<Bound>
Performs the
*
operation. Read moresource§impl<'a, Bound: Num + Width + Clone> Mul<Bound> for &'a IntervalSet<Bound>
impl<'a, Bound: Num + Width + Clone> Mul<Bound> for &'a IntervalSet<Bound>
§type Output = IntervalSet<Bound>
type Output = IntervalSet<Bound>
The resulting type after applying the
*
operator.source§fn mul(self, other: Bound) -> IntervalSet<Bound>
fn mul(self, other: Bound) -> IntervalSet<Bound>
Performs the
*
operation. Read moresource§impl<Bound: Num + Width + Clone> Mul<Bound> for IntervalSet<Bound>
impl<Bound: Num + Width + Clone> Mul<Bound> for IntervalSet<Bound>
§type Output = IntervalSet<Bound>
type Output = IntervalSet<Bound>
The resulting type after applying the
*
operator.source§fn mul(self, other: Bound) -> IntervalSet<Bound>
fn mul(self, other: Bound) -> IntervalSet<Bound>
Performs the
*
operation. Read moresource§impl<'a, Bound: Num + Width> Mul<IntervalSet<Bound>> for &'a IntervalSet<Bound>
impl<'a, Bound: Num + Width> Mul<IntervalSet<Bound>> for &'a IntervalSet<Bound>
§type Output = IntervalSet<Bound>
type Output = IntervalSet<Bound>
The resulting type after applying the
*
operator.source§fn mul(self, other: IntervalSet<Bound>) -> IntervalSet<Bound>
fn mul(self, other: IntervalSet<Bound>) -> IntervalSet<Bound>
Performs the
*
operation. Read moresource§impl<Bound: Num + Width> Mul for IntervalSet<Bound>
impl<Bound: Num + Width> Mul for IntervalSet<Bound>
§type Output = IntervalSet<Bound>
type Output = IntervalSet<Bound>
The resulting type after applying the
*
operator.source§fn mul(self, other: IntervalSet<Bound>) -> IntervalSet<Bound>
fn mul(self, other: IntervalSet<Bound>) -> IntervalSet<Bound>
Performs the
*
operation. Read moresource§impl<Bound: Width + Num> Overlap for IntervalSet<Bound>
impl<Bound: Width + Num> Overlap for IntervalSet<Bound>
fn overlap(&self, rhs: &IntervalSet<Bound>) -> bool
source§impl<Bound> PartialEq for IntervalSet<Bound>
impl<Bound> PartialEq for IntervalSet<Bound>
source§fn eq(&self, other: &IntervalSet<Bound>) -> bool
fn eq(&self, other: &IntervalSet<Bound>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<Bound: Width + Num> ProperSubset for IntervalSet<Bound>
impl<Bound: Width + Num> ProperSubset for IntervalSet<Bound>
fn is_proper_subset(&self, other: &IntervalSet<Bound>) -> bool
source§impl<Bound> Range for IntervalSet<Bound>
impl<Bound> Range for IntervalSet<Bound>
fn new(lb: Bound, ub: Bound) -> IntervalSet<Bound>
source§impl<Bound: Width + Num> ShrinkLeft for IntervalSet<Bound>
impl<Bound: Width + Num> ShrinkLeft for IntervalSet<Bound>
fn shrink_left(&self, lb: Bound) -> IntervalSet<Bound>
source§impl<Bound: Width + Num> ShrinkRight for IntervalSet<Bound>
impl<Bound: Width + Num> ShrinkRight for IntervalSet<Bound>
fn shrink_right(&self, ub: Bound) -> IntervalSet<Bound>
source§impl<Bound: Width + Num> Singleton for IntervalSet<Bound>
impl<Bound: Width + Num> Singleton for IntervalSet<Bound>
fn singleton(x: Bound) -> IntervalSet<Bound>
source§impl<'a, 'b, Bound: Num + Width + Clone> Sub<&'b Bound> for &'a IntervalSet<Bound>
impl<'a, 'b, Bound: Num + Width + Clone> Sub<&'b Bound> for &'a IntervalSet<Bound>
§type Output = IntervalSet<Bound>
type Output = IntervalSet<Bound>
The resulting type after applying the
-
operator.source§impl<'b, Bound: Num + Width + Clone> Sub<&'b Bound> for IntervalSet<Bound>
impl<'b, Bound: Num + Width + Clone> Sub<&'b Bound> for IntervalSet<Bound>
§type Output = IntervalSet<Bound>
type Output = IntervalSet<Bound>
The resulting type after applying the
-
operator.source§impl<'a, 'b, Bound: Num + Width> Sub<&'b IntervalSet<Bound>> for &'a IntervalSet<Bound>
impl<'a, 'b, Bound: Num + Width> Sub<&'b IntervalSet<Bound>> for &'a IntervalSet<Bound>
§type Output = IntervalSet<Bound>
type Output = IntervalSet<Bound>
The resulting type after applying the
-
operator.source§fn sub(self, other: &IntervalSet<Bound>) -> IntervalSet<Bound>
fn sub(self, other: &IntervalSet<Bound>) -> IntervalSet<Bound>
Performs the
-
operation. Read moresource§impl<'b, Bound: Num + Width> Sub<&'b IntervalSet<Bound>> for IntervalSet<Bound>
impl<'b, Bound: Num + Width> Sub<&'b IntervalSet<Bound>> for IntervalSet<Bound>
§type Output = IntervalSet<Bound>
type Output = IntervalSet<Bound>
The resulting type after applying the
-
operator.source§fn sub(self, other: &IntervalSet<Bound>) -> IntervalSet<Bound>
fn sub(self, other: &IntervalSet<Bound>) -> IntervalSet<Bound>
Performs the
-
operation. Read moresource§impl<'a, Bound: Num + Width + Clone> Sub<Bound> for &'a IntervalSet<Bound>
impl<'a, Bound: Num + Width + Clone> Sub<Bound> for &'a IntervalSet<Bound>
§type Output = IntervalSet<Bound>
type Output = IntervalSet<Bound>
The resulting type after applying the
-
operator.source§fn sub(self, other: Bound) -> IntervalSet<Bound>
fn sub(self, other: Bound) -> IntervalSet<Bound>
Performs the
-
operation. Read moresource§impl<Bound: Num + Width + Clone> Sub<Bound> for IntervalSet<Bound>
impl<Bound: Num + Width + Clone> Sub<Bound> for IntervalSet<Bound>
§type Output = IntervalSet<Bound>
type Output = IntervalSet<Bound>
The resulting type after applying the
-
operator.source§fn sub(self, other: Bound) -> IntervalSet<Bound>
fn sub(self, other: Bound) -> IntervalSet<Bound>
Performs the
-
operation. Read moresource§impl<'a, Bound: Num + Width> Sub<IntervalSet<Bound>> for &'a IntervalSet<Bound>
impl<'a, Bound: Num + Width> Sub<IntervalSet<Bound>> for &'a IntervalSet<Bound>
§type Output = IntervalSet<Bound>
type Output = IntervalSet<Bound>
The resulting type after applying the
-
operator.source§fn sub(self, other: IntervalSet<Bound>) -> IntervalSet<Bound>
fn sub(self, other: IntervalSet<Bound>) -> IntervalSet<Bound>
Performs the
-
operation. Read moresource§impl<Bound: Num + Width> Sub for IntervalSet<Bound>
impl<Bound: Num + Width> Sub for IntervalSet<Bound>
§type Output = IntervalSet<Bound>
type Output = IntervalSet<Bound>
The resulting type after applying the
-
operator.source§fn sub(self, other: IntervalSet<Bound>) -> IntervalSet<Bound>
fn sub(self, other: IntervalSet<Bound>) -> IntervalSet<Bound>
Performs the
-
operation. Read moresource§impl<Bound: Width + Num> Subset for IntervalSet<Bound>
impl<Bound: Width + Num> Subset for IntervalSet<Bound>
fn is_subset(&self, other: &IntervalSet<Bound>) -> bool
source§impl<Bound> SymmetricDifference<Bound> for IntervalSet<Bound>
impl<Bound> SymmetricDifference<Bound> for IntervalSet<Bound>
type Output = IntervalSet<Bound>
fn symmetric_difference(&self, rhs: &Bound) -> IntervalSet<Bound>
source§impl<Bound: Width + Num> SymmetricDifference for IntervalSet<Bound>
impl<Bound: Width + Num> SymmetricDifference for IntervalSet<Bound>
type Output = IntervalSet<Bound>
fn symmetric_difference(&self, rhs: &IntervalSet<Bound>) -> IntervalSet<Bound>
source§impl<Bound> Top for IntervalSet<Bound>
impl<Bound> Top for IntervalSet<Bound>
fn top() -> IntervalSet<Bound>
source§impl<Bound> Union<Bound> for IntervalSet<Bound>
impl<Bound> Union<Bound> for IntervalSet<Bound>
type Output = IntervalSet<Bound>
fn union(&self, rhs: &Bound) -> IntervalSet<Bound>
source§impl<Bound: Width + Num> Union for IntervalSet<Bound>
impl<Bound: Width + Num> Union for IntervalSet<Bound>
type Output = IntervalSet<Bound>
fn union(&self, rhs: &IntervalSet<Bound>) -> IntervalSet<Bound>
source§impl<Bound> Whole for IntervalSet<Bound>
impl<Bound> Whole for IntervalSet<Bound>
fn whole() -> IntervalSet<Bound>
impl<Bound: Width + Num> Eq for IntervalSet<Bound>
impl<Bound: Width> IntervalKind for IntervalSet<Bound>
Auto Trait Implementations§
impl<Bound> RefUnwindSafe for IntervalSet<Bound>
impl<Bound> Send for IntervalSet<Bound>
impl<Bound> Sync for IntervalSet<Bound>
impl<Bound> Unpin for IntervalSet<Bound>
impl<Bound> UnwindSafe for IntervalSet<Bound>
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
source§impl<R> IsSingleton for Rwhere
R: Cardinality,
impl<R> IsSingleton for Rwhere
R: Cardinality,
fn is_singleton(&self) -> bool
source§impl<R> StrictEntailment for Rwhere
R: Entailment + Eq,
impl<R> StrictEntailment for Rwhere
R: Entailment + Eq,
source§fn strict_entail(&self, other: &R) -> SKleene
fn strict_entail(&self, other: &R) -> SKleene
Must be similar to
a.entail(&b) && a != b
.