pub enum Triple<T> {
Single(T),
First(T, T),
Full(T, T, T),
Last(T, T),
}
Variants§
Single(T)
None, Some(T), None
First(T, T)
None, Some(T), Some(T)
Full(T, T, T)
Some(T), Some(T), Some(T)
Last(T, T)
Some(T), Some(T), None
Trait Implementations§
impl<T> StructuralPartialEq for Triple<T>
Auto Trait Implementations§
impl<T> Freeze for Triple<T>where
T: Freeze,
impl<T> RefUnwindSafe for Triple<T>where
T: RefUnwindSafe,
impl<T> Send for Triple<T>where
T: Send,
impl<T> Sync for Triple<T>where
T: Sync,
impl<T> Unpin for Triple<T>where
T: Unpin,
impl<T> UnwindSafe for Triple<T>where
T: 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