Enum bounds::Bounds
[−]
[src]
pub enum Bounds<T> { Exact(T), Range(Option<Bound<T>>, Option<Bound<T>>), }
Variants
Exact(T)
Range(Option<Bound<T>>, Option<Bound<T>>)
Methods
impl<T: Sub<Output = T> + Clone> Bounds<T>
[src]
impl<T: Eq + Ord> Bounds<T>
[src]
fn merge(self, other: Self) -> Self
[src]
fn range(start: Bound<T>, end: Bound<T>) -> Self
[src]
fn intersects(&self, other: &Bounds<T>) -> bool
[src]
fn compare_to(&self, other: &Bounds<T>) -> Comparison
[src]
Trait Implementations
impl<T: Debug> Debug for Bounds<T>
[src]
impl<T: Eq> Eq for Bounds<T>
[src]
impl<T: PartialEq> PartialEq for Bounds<T>
[src]
fn eq(&self, __arg_0: &Bounds<T>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Bounds<T>) -> bool
[src]
This method tests for !=
.