pub enum Select<T, U> {
Fst(T),
Snd(U),
}
Expand description
Selects between spaces.
Variants§
Trait Implementations§
source§impl<T: Ord, U: Ord> Ord for Select<T, U>
impl<T: Ord, U: Ord> Ord for Select<T, U>
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl<T: PartialEq, U: PartialEq> PartialEq for Select<T, U>
impl<T: PartialEq, U: PartialEq> PartialEq for Select<T, U>
source§impl<T: PartialOrd, U: PartialOrd> PartialOrd for Select<T, U>
impl<T: PartialOrd, U: PartialOrd> PartialOrd for Select<T, U>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl<T: Eq, U: Eq> Eq for Select<T, U>
impl<T, U> StructuralEq for Select<T, U>
impl<T, U> StructuralPartialEq for Select<T, U>
Auto Trait Implementations§
impl<T, U> RefUnwindSafe for Select<T, U>where
T: RefUnwindSafe,
U: RefUnwindSafe,
impl<T, U> Send for Select<T, U>
impl<T, U> Sync for Select<T, U>
impl<T, U> Unpin for Select<T, U>
impl<T, U> UnwindSafe for Select<T, U>where
T: UnwindSafe,
U: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more