Struct fundamental_data_type::protected::Pair
source · [−]pub struct Pair<T1, T2>(pub T1, pub T2);
Expand description
Type constructor to wrap two types into a tuple.
Tuple Fields
0: T1
1: T2
Trait Implementations
sourceimpl<T1, T2> PartialEq<Pair<T1, T2>> for Pair<T1, T2> where
T1: PartialEq<T1>,
T2: PartialEq<T2>,
impl<T1, T2> PartialEq<Pair<T1, T2>> for Pair<T1, T2> where
T1: PartialEq<T1>,
T2: PartialEq<T2>,
impl<T1, T2> Eq for Pair<T1, T2> where
T1: Eq,
T2: Eq,
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more