Enum bounds::Bounds [] [src]

pub enum Bounds<T> {
    Exact(T),
    Range(Option<Bound<T>>, Option<Bound<T>>),
}

Variants

Methods

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

[src]

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

[src]

[src]

[src]

[src]

Trait Implementations

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

[src]

Formats the value using the given formatter.

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

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

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

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

[src]

Performs the conversion.

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

[src]

Performs the conversion.

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

[src]

Performs the conversion.

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

[src]

Performs the conversion.

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

The resulting type after applying the - operator.

[src]

Performs the unary - operation.

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

The resulting type after applying the + operator.

[src]

Performs the + operation.

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

The resulting type after applying the - operator.

[src]

Performs the - operation.