pub struct Pair<First, Second>(pub First, pub Second);๐Deprecated since 0.0.21: Use fp_library::v2::types instead
Expand description
Wraps two values.
Tuple Fieldsยง
ยง0: First๐Deprecated since 0.0.21: Use fp_library::v2::types instead
ยง1: Second๐Deprecated since 0.0.21: Use fp_library::v2::types instead
Implementationsยง
Sourceยงimpl<'a, First, Second> Pair<First, Second>where
First: 'a + Clone,
impl<'a, First, Second> Pair<First, Second>where
First: 'a + Clone,
pub fn new<ClonableFnBrand: 'a + ClonableFn>( first: First, ) -> ApplyClonableFn<'a, ClonableFnBrand, Second, Self>
๐Deprecated since 0.0.21: Use fp_library::v2::types instead
Trait Implementationsยง
Sourceยงimpl<First: Ord, Second: Ord> Ord for Pair<First, Second>
impl<First: Ord, Second: Ord> Ord for Pair<First, Second>
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<First: PartialOrd, Second: PartialOrd> PartialOrd for Pair<First, Second>
impl<First: PartialOrd, Second: PartialOrd> PartialOrd for Pair<First, Second>
impl<First: Copy, Second: Copy> Copy for Pair<First, Second>
impl<First: Eq, Second: Eq> Eq for Pair<First, Second>
impl<First, Second> StructuralPartialEq for Pair<First, Second>
Auto Trait Implementationsยง
impl<First, Second> Freeze for Pair<First, Second>
impl<First, Second> RefUnwindSafe for Pair<First, Second>where
First: RefUnwindSafe,
Second: RefUnwindSafe,
impl<First, Second> Send for Pair<First, Second>
impl<First, Second> Sync for Pair<First, Second>
impl<First, Second> Unpin for Pair<First, Second>
impl<First, Second> UnwindSafe for Pair<First, Second>where
First: UnwindSafe,
Second: 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