pub struct Tuple2<T0, T1>(pub T0, pub T1);Expand description
2つの集合の直積
Tuple Fields§
§0: T0§1: T1Trait Implementations§
Source§impl<T0: BinaryOp, T1: BinaryOp> BinaryOp for Tuple2<T0, T1>
impl<T0: BinaryOp, T1: BinaryOp> BinaryOp for Tuple2<T0, T1>
Source§fn op_assign_r(&self, a: &mut Self::Element, b: Self::Element)
fn op_assign_r(&self, a: &mut Self::Element, b: Self::Element)
二項演算$\circ$で(右側から)代入操作($a \leftarrow a \circ b$)をする。
Source§impl<T0: Ord, T1: Ord> Ord for Tuple2<T0, T1>
impl<T0: Ord, T1: Ord> Ord for Tuple2<T0, T1>
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<T0: PartialOrd, T1: PartialOrd> PartialOrd for Tuple2<T0, T1>
impl<T0: PartialOrd, T1: PartialOrd> PartialOrd for Tuple2<T0, T1>
impl<T0: Associative, T1: Associative> Associative for Tuple2<T0, T1>
impl<T0: Commutative, T1: Commutative> Commutative for Tuple2<T0, T1>
impl<T0: Copy, T1: Copy> Copy for Tuple2<T0, T1>
impl<T0: Eq, T1: Eq> Eq for Tuple2<T0, T1>
impl<T0: Idempotence, T1: Idempotence> Idempotence for Tuple2<T0, T1>
impl<T0, T1> StructuralPartialEq for Tuple2<T0, T1>
Auto Trait Implementations§
impl<T0, T1> Freeze for Tuple2<T0, T1>
impl<T0, T1> RefUnwindSafe for Tuple2<T0, T1>where
T0: RefUnwindSafe,
T1: RefUnwindSafe,
impl<T0, T1> Send for Tuple2<T0, T1>
impl<T0, T1> Sync for Tuple2<T0, T1>
impl<T0, T1> Unpin for Tuple2<T0, T1>
impl<T0, T1> UnwindSafe for Tuple2<T0, T1>where
T0: UnwindSafe,
T1: 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