[][src]Enum ranges::OperationResult

#[must_use =
  "a range operation might not always return another range and should be handled"]pub enum OperationResult<T: Domain> {
    Empty,
    Single(GenericRange<T>),
    Double(GenericRange<T>, GenericRange<T>),
}

Result of a unary or binary operation.

Variants

Empty

The operation resulted in an empty range.

Single(GenericRange<T>)

The operation resulted in a single range.

Double(GenericRange<T>, GenericRange<T>)

The operation resulted in two ranges.

Trait Implementations

impl<T: Clone + Domain> Clone for OperationResult<T>[src]

impl<T: Copy + Domain> Copy for OperationResult<T>[src]

impl<T: Debug + Domain> Debug for OperationResult<T>[src]

impl<T: Eq + Domain> Eq for OperationResult<T>[src]

impl<T: PartialEq + Domain> PartialEq<OperationResult<T>> for OperationResult<T>[src]

impl<T: Domain> StructuralEq for OperationResult<T>[src]

impl<T: Domain> StructuralPartialEq for OperationResult<T>[src]

Auto Trait Implementations

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

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

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

Blanket Implementations

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

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

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

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

impl<T, U> Into<U> for T where
    U: From<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.