pub enum Mixed4<A, B, C, D> {
A(A),
B(B),
C(C),
D(D),
}Variants§
Implementations§
Source§impl<A, B, C, D> Mixed4<A, B, C, D>
impl<A, B, C, D> Mixed4<A, B, C, D>
pub fn borrow_a(&self) -> Option<&A>
pub fn borrow_b(&self) -> Option<&B>
pub fn borrow_c(&self) -> Option<&C>
pub fn borrow_d(&self) -> Option<&D>
pub fn borrow_a_mut(&mut self) -> Option<&mut A>
pub fn borrow_b_mut(&mut self) -> Option<&mut B>
pub fn borrow_c_mut(&mut self) -> Option<&mut C>
pub fn borrow_d_mut(&mut self) -> Option<&mut D>
pub fn take_a(self) -> Option<A>
pub fn take_b(self) -> Option<B>
pub fn take_c(self) -> Option<C>
pub fn take_d(self) -> Option<D>
Trait Implementations§
Source§impl<A, B, C, D> Ord for Mixed4<A, B, C, D>where
A: Ord + PartialOrd<A> + PartialOrd<B> + PartialOrd<C> + PartialOrd<D>,
B: Ord + PartialOrd<A> + PartialOrd<B> + PartialOrd<C> + PartialOrd<D>,
C: Ord + PartialOrd<A> + PartialOrd<B> + PartialOrd<C> + PartialOrd<D>,
D: Ord + PartialOrd<A> + PartialOrd<B> + PartialOrd<C> + PartialOrd<D>,
impl<A, B, C, D> Ord for Mixed4<A, B, C, D>where
A: Ord + PartialOrd<A> + PartialOrd<B> + PartialOrd<C> + PartialOrd<D>,
B: Ord + PartialOrd<A> + PartialOrd<B> + PartialOrd<C> + PartialOrd<D>,
C: Ord + PartialOrd<A> + PartialOrd<B> + PartialOrd<C> + PartialOrd<D>,
D: Ord + PartialOrd<A> + PartialOrd<B> + PartialOrd<C> + PartialOrd<D>,
Source§impl<A, B, C, D> PartialOrd for Mixed4<A, B, C, D>where
A: PartialOrd<A> + PartialOrd<B> + PartialOrd<C> + PartialOrd<D>,
B: PartialOrd<A> + PartialOrd<B> + PartialOrd<C> + PartialOrd<D>,
C: PartialOrd<A> + PartialOrd<B> + PartialOrd<C> + PartialOrd<D>,
D: PartialOrd<A> + PartialOrd<B> + PartialOrd<C> + PartialOrd<D>,
impl<A, B, C, D> PartialOrd for Mixed4<A, B, C, D>where
A: PartialOrd<A> + PartialOrd<B> + PartialOrd<C> + PartialOrd<D>,
B: PartialOrd<A> + PartialOrd<B> + PartialOrd<C> + PartialOrd<D>,
C: PartialOrd<A> + PartialOrd<B> + PartialOrd<C> + PartialOrd<D>,
D: PartialOrd<A> + PartialOrd<B> + PartialOrd<C> + PartialOrd<D>,
impl<A, B, C, D> Copy for Mixed4<A, B, C, D>
impl<A, B, C, D> Eq for Mixed4<A, B, C, D>
Auto Trait Implementations§
impl<A, B, C, D> Freeze for Mixed4<A, B, C, D>
impl<A, B, C, D> RefUnwindSafe for Mixed4<A, B, C, D>
impl<A, B, C, D> Send for Mixed4<A, B, C, D>
impl<A, B, C, D> Sync for Mixed4<A, B, C, D>
impl<A, B, C, D> Unpin for Mixed4<A, B, C, D>
impl<A, B, C, D> UnwindSafe for Mixed4<A, B, C, D>
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