pub struct Pair<T1, T2> { /* private fields */ }Implementations§
Trait Implementations§
source§impl<T1: PartialEq, T2: PartialEq> PartialEq<Pair<T1, T2>> for Pair<T1, T2>
impl<T1: PartialEq, T2: PartialEq> PartialEq<Pair<T1, T2>> for Pair<T1, T2>
impl<T1: Copy, T2: Copy> Copy for Pair<T1, T2>
impl<T1: Eq, T2: Eq> Eq for Pair<T1, T2>
impl<T1, T2> StructuralEq for Pair<T1, T2>
impl<T1, T2> StructuralPartialEq for Pair<T1, T2>
Auto Trait Implementations§
impl<T1, T2> RefUnwindSafe for Pair<T1, T2>where T1: RefUnwindSafe, T2: RefUnwindSafe,
impl<T1, T2> Send for Pair<T1, T2>where T1: Send, T2: Send,
impl<T1, T2> Sync for Pair<T1, T2>where T1: Sync, T2: Sync,
impl<T1, T2> Unpin for Pair<T1, T2>where T1: Unpin, T2: Unpin,
impl<T1, T2> UnwindSafe for Pair<T1, T2>where T1: UnwindSafe, T2: 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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>where
F: FnOnce(&Self) -> bool,
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>where F: FnOnce(&Self) -> bool,
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more