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 !=
.
impl<T> From<Range<T>> for Bounds<T>
[src]
impl<T> From<RangeTo<T>> for Bounds<T>
[src]
impl<T> From<RangeFrom<T>> for Bounds<T>
[src]
impl<T> From<RangeFull> for Bounds<T>
[src]
impl<T: Neg<Output = T>> Neg for Bounds<T>
[src]
type Output = Bounds<T>
The resulting type after applying the -
operator.
fn neg(self) -> Self::Output
[src]
Performs the unary -
operation.
impl<T: Add<T, Output = T> + Clone + Eq + Ord> Add for Bounds<T>
[src]
type Output = Self
The resulting type after applying the +
operator.
fn add(self, other: Self) -> Self::Output
[src]
Performs the +
operation.