Enum ranges::OperationResult [−][src]
#[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>), }
Expand description
Result of a unary or binary operation.
Variants
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: Clone + Domain> Clone for OperationResult<T>
[src]fn clone(&self) -> OperationResult<T>
[src]
fn clone(&self) -> OperationResult<T>
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl<T: Debug + Domain> Debug for OperationResult<T>
[src]
impl<T: Debug + Domain> Debug for OperationResult<T>
[src]impl<T: PartialEq + Domain> PartialEq<OperationResult<T>> for OperationResult<T>
[src]
impl<T: PartialEq + Domain> PartialEq<OperationResult<T>> for OperationResult<T>
[src]fn eq(&self, other: &OperationResult<T>) -> bool
[src]
fn eq(&self, other: &OperationResult<T>) -> bool
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
fn ne(&self, other: &OperationResult<T>) -> bool
[src]
fn ne(&self, other: &OperationResult<T>) -> bool
[src]This method tests for !=
.
impl<T: Copy + Domain> Copy for OperationResult<T>
[src]
impl<T: Eq + Domain> Eq 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,
T: Send,
impl<T> Sync for OperationResult<T> where
T: Sync,
T: Sync,
impl<T> Unpin for OperationResult<T> where
T: Unpin,
T: Unpin,
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more