[][src]Enum bounds::Bounds

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> Bounds<T>[src]

pub fn remove_upper_bound(self) -> Bounds<T>[src]

pub fn remove_lower_bound(self) -> Bounds<T>[src]

impl<T: Sub<Output = T> + Clone + Zero> Bounds<T>[src]

pub fn size(&self) -> Option<T>[src]

impl<T: Eq + Ord> Bounds<T>[src]

pub fn merge(self, other: Self) -> Self[src]

pub fn range(start: Bound<T>, end: Bound<T>) -> Self[src]

pub fn intersects(&self, other: &Bounds<T>) -> bool[src]

pub fn compare_to(&self, other: &Bounds<T>) -> Comparison[src]

Trait Implementations

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: Clone> Clone for Bounds<T>[src]

impl<T: Eq> Eq for Bounds<T>[src]

impl<T: PartialEq> PartialEq<Bounds<T>> for Bounds<T>[src]

impl<T: Debug> Debug for Bounds<T>[src]

impl<T: Div<T, Output = T> + Clone + Eq + Ord + Zero + Debug> Div<Bounds<T>> for Bounds<T>[src]

type Output = Option<Self>

The resulting type after applying the / operator.

impl<T: Neg<Output = T> + Add<T, Output = T> + Clone + Eq + Ord> Sub<Bounds<T>> for Bounds<T>[src]

type Output = Self

The resulting type after applying the - operator.

impl<T: Add<T, Output = T> + Clone + Eq + Ord> Add<Bounds<T>> for Bounds<T>[src]

type Output = Self

The resulting type after applying the + operator.

impl<T: Mul<T, Output = T> + Clone + Eq + Ord + Zero + Debug> Mul<Bounds<T>> for Bounds<T>[src]

type Output = Self

The resulting type after applying the * operator.

impl<T: Neg<Output = T>> Neg for Bounds<T>[src]

type Output = Bounds<T>

The resulting type after applying the - operator.

impl<T> StructuralPartialEq for Bounds<T>[src]

impl<T> StructuralEq for Bounds<T>[src]

Auto Trait Implementations

impl<T> Send for Bounds<T> where
    T: Send

impl<T> Sync for Bounds<T> where
    T: Sync

impl<T> Unpin for Bounds<T> where
    T: Unpin

impl<T> UnwindSafe for Bounds<T> where
    T: UnwindSafe

impl<T> RefUnwindSafe for Bounds<T> where
    T: RefUnwindSafe

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]