Struct interval::interval::Interval
[−]
[src]
pub struct Interval<Bound> { /* fields omitted */ }
Closed interval (endpoints included).
Trait Implementations
impl<Bound: Debug> Debug for Interval<Bound>
[src]
impl<Bound: Copy> Copy for Interval<Bound>
[src]
impl<Bound: Clone> Clone for Interval<Bound>
[src]
fn clone(&self) -> Interval<Bound>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl<Bound> IntervalKind for Interval<Bound>
[src]
impl<Bound> Collection for Interval<Bound>
[src]
type Item = Bound
impl<Bound: Width + Num> Eq for Interval<Bound>
[src]
impl<Bound> PartialEq<Interval<Bound>> for Interval<Bound> where Bound: Width + Num
[src]
fn eq(&self, other: &Interval<Bound>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.
impl<Bound> Range for Interval<Bound> where Bound: Width
[src]
impl<Bound> Bounded for Interval<Bound> where Bound: Num + Width + Clone
[src]
impl<Bound> Singleton for Interval<Bound> where Bound: Width + Clone
[src]
impl<Bound> Empty for Interval<Bound> where Bound: Width + Num
[src]
impl<Bound> Whole for Interval<Bound> where Bound: Width + Num
[src]
impl<Bound> Cardinality for Interval<Bound> where Bound: Width + Num
[src]
impl<Bound> IsSingleton for Interval<Bound> where Bound: Width + Num
[src]
fn is_singleton(&self) -> bool
impl<Bound> IsEmpty for Interval<Bound> where Bound: Width + Num
[src]
impl<Bound> Disjoint for Interval<Bound> where Bound: Width + Num
[src]
fn is_disjoint(&self, other: &Interval<Bound>) -> bool
impl<Bound> Disjoint<Bound> for Interval<Bound> where Bound: Num + Ord
[src]
fn is_disjoint(&self, value: &Bound) -> bool
impl<Bound> Disjoint<Optional<Bound>> for Interval<Bound> where Bound: Num + Ord
[src]
fn is_disjoint(&self, value: &Optional<Bound>) -> bool
impl<Bound> Overlap for Interval<Bound> where Bound: Width + Num
[src]
impl<Bound> Overlap<Bound> for Interval<Bound> where Bound: Width + Num
[src]
impl<Bound> Overlap<Optional<Bound>> for Interval<Bound> where Bound: Width + Num
[src]
impl<Bound> Hull for Interval<Bound> where Bound: Width + Num
[src]
impl<Bound> Hull<Bound> for Interval<Bound> where Bound: Width + Num
[src]
impl<Bound> Contains for Interval<Bound> where Bound: Ord
[src]
impl<Bound> Subset for Interval<Bound> where Bound: Width + Num
[src]
impl<Bound> ProperSubset for Interval<Bound> where Bound: Width + Num
[src]
fn is_proper_subset(&self, other: &Interval<Bound>) -> bool
impl<Bound> Intersection for Interval<Bound> where Bound: Width + Num
[src]
type Output = Interval<Bound>
fn intersection(&self, other: &Interval<Bound>) -> Interval<Bound>
impl<Bound> Intersection<Bound> for Interval<Bound> where Bound: Width + Num
[src]
type Output = Interval<Bound>
fn intersection(&self, value: &Bound) -> Interval<Bound>
impl<Bound> Intersection<Optional<Bound>> for Interval<Bound> where Bound: Width + Num
[src]
type Output = Interval<Bound>
fn intersection(&self, value: &Optional<Bound>) -> Interval<Bound>
impl<Bound> Difference for Interval<Bound> where Bound: Width + Num
[src]
type Output = Interval<Bound>
fn difference(&self, other: &Interval<Bound>) -> Interval<Bound>
impl<Bound> Difference<Bound> for Interval<Bound> where Bound: Num + Clone
[src]
type Output = Interval<Bound>
fn difference(&self, value: &Bound) -> Interval<Bound>
impl<Bound> Difference<Optional<Bound>> for Interval<Bound> where Bound: Ord + Num + Clone
[src]
type Output = Interval<Bound>
fn difference(&self, value: &Optional<Bound>) -> Interval<Bound>
impl<Bound> ShrinkLeft for Interval<Bound> where Bound: Num + Width
[src]
fn shrink_left(&self, lb: Bound) -> Interval<Bound>
impl<Bound> ShrinkRight for Interval<Bound> where Bound: Num + Width
[src]
fn shrink_right(&self, ub: Bound) -> Interval<Bound>
impl<Bound: Num + Width> Add<Interval<Bound>> for Interval<Bound>
type Output = Interval<Bound>
The resulting type after applying the +
operator
fn add(self, other: Interval<Bound>) -> Interval<Bound>
The method for the +
operator
impl<'a, Bound: Num + Width> Add<Interval<Bound>> for &'a Interval<Bound>
type Output = Interval<Bound>
The resulting type after applying the +
operator
fn add(self, other: Interval<Bound>) -> Interval<Bound>
The method for the +
operator
impl<'b, Bound: Num + Width> Add<&'b Interval<Bound>> for Interval<Bound>
type Output = Interval<Bound>
The resulting type after applying the +
operator
fn add(self, other: &Interval<Bound>) -> Interval<Bound>
The method for the +
operator
impl<'a, 'b, Bound> Add<&'b Interval<Bound>> for &'a Interval<Bound> where Bound: Num + Width
[src]
type Output = Interval<Bound>
The resulting type after applying the +
operator
fn add(self, other: &Interval<Bound>) -> Interval<Bound>
The method for the +
operator
impl<Bound: Num + Width + Clone> Add<Bound> for Interval<Bound>
type Output = Interval<Bound>
The resulting type after applying the +
operator
fn add(self, other: Bound) -> Interval<Bound>
The method for the +
operator
impl<'a, Bound: Num + Width + Clone> Add<Bound> for &'a Interval<Bound>
type Output = Interval<Bound>
The resulting type after applying the +
operator
fn add(self, other: Bound) -> Interval<Bound>
The method for the +
operator
impl<'b, Bound: Num + Width + Clone> Add<&'b Bound> for Interval<Bound>
type Output = Interval<Bound>
The resulting type after applying the +
operator
fn add(self, other: &Bound) -> Interval<Bound>
The method for the +
operator
impl<'a, 'b, Bound> Add<&'b Bound> for &'a Interval<Bound> where Bound: Num + Width + Clone
[src]
type Output = Interval<Bound>
The resulting type after applying the +
operator
fn add(self, other: &Bound) -> Interval<Bound>
The method for the +
operator
impl<Bound: Num + Width> Sub<Interval<Bound>> for Interval<Bound>
type Output = Interval<Bound>
The resulting type after applying the -
operator
fn sub(self, other: Interval<Bound>) -> Interval<Bound>
The method for the -
operator
impl<'a, Bound: Num + Width> Sub<Interval<Bound>> for &'a Interval<Bound>
type Output = Interval<Bound>
The resulting type after applying the -
operator
fn sub(self, other: Interval<Bound>) -> Interval<Bound>
The method for the -
operator
impl<'b, Bound: Num + Width> Sub<&'b Interval<Bound>> for Interval<Bound>
type Output = Interval<Bound>
The resulting type after applying the -
operator
fn sub(self, other: &Interval<Bound>) -> Interval<Bound>
The method for the -
operator
impl<'a, 'b, Bound> Sub<&'b Interval<Bound>> for &'a Interval<Bound> where Bound: Num + Width
[src]
type Output = Interval<Bound>
The resulting type after applying the -
operator
fn sub(self, other: &Interval<Bound>) -> Interval<Bound>
The method for the -
operator
impl<Bound: Num + Width + Clone> Sub<Bound> for Interval<Bound>
type Output = Interval<Bound>
The resulting type after applying the -
operator
fn sub(self, other: Bound) -> Interval<Bound>
The method for the -
operator
impl<'a, Bound: Num + Width + Clone> Sub<Bound> for &'a Interval<Bound>
type Output = Interval<Bound>
The resulting type after applying the -
operator
fn sub(self, other: Bound) -> Interval<Bound>
The method for the -
operator
impl<'b, Bound: Num + Width + Clone> Sub<&'b Bound> for Interval<Bound>
type Output = Interval<Bound>
The resulting type after applying the -
operator
fn sub(self, other: &Bound) -> Interval<Bound>
The method for the -
operator
impl<'a, 'b, Bound> Sub<&'b Bound> for &'a Interval<Bound> where Bound: Num + Width + Clone
[src]
type Output = Interval<Bound>
The resulting type after applying the -
operator
fn sub(self, other: &Bound) -> Interval<Bound>
The method for the -
operator
impl<Bound: Num + Width> Mul<Interval<Bound>> for Interval<Bound>
type Output = Interval<Bound>
The resulting type after applying the *
operator
fn mul(self, other: Interval<Bound>) -> Interval<Bound>
The method for the *
operator
impl<'a, Bound: Num + Width> Mul<Interval<Bound>> for &'a Interval<Bound>
type Output = Interval<Bound>
The resulting type after applying the *
operator
fn mul(self, other: Interval<Bound>) -> Interval<Bound>
The method for the *
operator
impl<'b, Bound: Num + Width> Mul<&'b Interval<Bound>> for Interval<Bound>
type Output = Interval<Bound>
The resulting type after applying the *
operator
fn mul(self, other: &Interval<Bound>) -> Interval<Bound>
The method for the *
operator
impl<'a, 'b, Bound> Mul<&'b Interval<Bound>> for &'a Interval<Bound> where Bound: Num + Width
[src]
type Output = Interval<Bound>
The resulting type after applying the *
operator
fn mul(self, other: &Interval<Bound>) -> Interval<Bound>
The method for the *
operator
impl<Bound: Num + Width + Clone> Mul<Bound> for Interval<Bound>
type Output = Interval<Bound>
The resulting type after applying the *
operator
fn mul(self, other: Bound) -> Interval<Bound>
The method for the *
operator
impl<'a, Bound: Num + Width + Clone> Mul<Bound> for &'a Interval<Bound>
type Output = Interval<Bound>
The resulting type after applying the *
operator
fn mul(self, other: Bound) -> Interval<Bound>
The method for the *
operator
impl<'b, Bound: Num + Width + Clone> Mul<&'b Bound> for Interval<Bound>
type Output = Interval<Bound>
The resulting type after applying the *
operator
fn mul(self, other: &Bound) -> Interval<Bound>
The method for the *
operator
impl<'a, 'b, Bound> Mul<&'b Bound> for &'a Interval<Bound> where Bound: Num + Width + Clone
[src]
type Output = Interval<Bound>
The resulting type after applying the *
operator
fn mul(self, other: &Bound) -> Interval<Bound>
The method for the *
operator
impl<Bound> Display for Interval<Bound> where Bound: Display + Width + Num
[src]
fn fmt(&self, formatter: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter.