Primitive Type tuple
Expand description
A finite heterogeneous sequence, (T, U, ..)
.
Let’s cover each of those in turn:
Tuples are finite. In other words, a tuple has a length. Here’s a tuple
of length 3
:
‘Length’ is also sometimes called ‘arity’ here; each tuple of a different length is a different, distinct type.
Tuples are heterogeneous. This means that each element of the tuple can have a different type. In that tuple above, it has the type:
Tuples are a sequence. This means that they can be accessed by position; this is called ‘tuple indexing’, and it looks like this:
let tuple = ("hello", 5, 'c');
assert_eq!(tuple.0, "hello");
assert_eq!(tuple.1, 5);
assert_eq!(tuple.2, 'c');
The sequential nature of the tuple applies to its implementations of various
traits. For example, in PartialOrd
and Ord
, the elements are compared
sequentially until the first non-equal set is found.
For more about tuples, see the book.
§Trait implementations
In this documentation the shorthand (T₁, T₂, …, Tₙ)
is used to represent tuples of varying
length. When that is used, any trait bound expressed on T
applies to each element of the
tuple independently. Note that this is a convenience notation to avoid repetitive
documentation, not valid Rust syntax.
Due to a temporary restriction in Rust’s type system, the following traits are only implemented on tuples of arity 12 or less. In the future, this may change:
The following traits are implemented for tuples of any length. These traits have implementations that are automatically generated by the compiler, so are not limited by missing language features.
§Examples
Basic usage:
Tuples are often used as a return type when you want to return more than one value:
fn calculate_point() -> (i32, i32) {
// Don't do a calculation, that's not the point of the example
(4, 5)
}
let point = calculate_point();
assert_eq!(point.0, 4);
assert_eq!(point.1, 5);
// Combining this with patterns can be nicer.
let (x, y) = calculate_point();
assert_eq!(x, 4);
assert_eq!(y, 5);
Homogeneous tuples can be created from arrays of appropriate length:
Implementations§
Trait Implementations§
1.0.0 · Source§impl<A: Debug, Z: Debug, Y: Debug, X: Debug, W: Debug, V: Debug, U: Debug, T> Debug for (A, Z, Y, X, W, V, U, T)
impl<A: Debug, Z: Debug, Y: Debug, X: Debug, W: Debug, V: Debug, U: Debug, T> Debug for (A, Z, Y, X, W, V, U, T)
1.0.0 · Source§impl<B: Debug, A: Debug, Z: Debug, Y: Debug, X: Debug, W: Debug, V: Debug, U: Debug, T> Debug for (B, A, Z, Y, X, W, V, U, T)
impl<B: Debug, A: Debug, Z: Debug, Y: Debug, X: Debug, W: Debug, V: Debug, U: Debug, T> Debug for (B, A, Z, Y, X, W, V, U, T)
1.0.0 · Source§impl<C: Debug, B: Debug, A: Debug, Z: Debug, Y: Debug, X: Debug, W: Debug, V: Debug, U: Debug, T> Debug for (C, B, A, Z, Y, X, W, V, U, T)
impl<C: Debug, B: Debug, A: Debug, Z: Debug, Y: Debug, X: Debug, W: Debug, V: Debug, U: Debug, T> Debug for (C, B, A, Z, Y, X, W, V, U, T)
1.0.0 · Source§impl<D: Debug, C: Debug, B: Debug, A: Debug, Z: Debug, Y: Debug, X: Debug, W: Debug, V: Debug, U: Debug, T> Debug for (D, C, B, A, Z, Y, X, W, V, U, T)
impl<D: Debug, C: Debug, B: Debug, A: Debug, Z: Debug, Y: Debug, X: Debug, W: Debug, V: Debug, U: Debug, T> Debug for (D, C, B, A, Z, Y, X, W, V, U, T)
1.0.0 · Source§impl<E: Debug, D: Debug, C: Debug, B: Debug, A: Debug, Z: Debug, Y: Debug, X: Debug, W: Debug, V: Debug, U: Debug, T> Debug for (E, D, C, B, A, Z, Y, X, W, V, U, T)
impl<E: Debug, D: Debug, C: Debug, B: Debug, A: Debug, Z: Debug, Y: Debug, X: Debug, W: Debug, V: Debug, U: Debug, T> Debug for (E, D, C, B, A, Z, Y, X, W, V, U, T)
1.0.0 · Source§impl<T> Debug for (T₁, T₂, …, Tₙ)
This trait is implemented for tuples up to twelve items long.
impl<T> Debug for (T₁, T₂, …, Tₙ)
This trait is implemented for tuples up to twelve items long.
1.0.0 · Source§impl<Y: Debug, X: Debug, W: Debug, V: Debug, U: Debug, T> Debug for (Y, X, W, V, U, T)
impl<Y: Debug, X: Debug, W: Debug, V: Debug, U: Debug, T> Debug for (Y, X, W, V, U, T)
1.0.0 · Source§impl<Z: Debug, Y: Debug, X: Debug, W: Debug, V: Debug, U: Debug, T> Debug for (Z, Y, X, W, V, U, T)
impl<Z: Debug, Y: Debug, X: Debug, W: Debug, V: Debug, U: Debug, T> Debug for (Z, Y, X, W, V, U, T)
1.0.0 · Source§impl<A: Default, Z: Default, Y: Default, X: Default, W: Default, V: Default, U: Default, T: Default> Default for (A, Z, Y, X, W, V, U, T)
impl<A: Default, Z: Default, Y: Default, X: Default, W: Default, V: Default, U: Default, T: Default> Default for (A, Z, Y, X, W, V, U, T)
Source§fn default() -> (A, Z, Y, X, W, V, U, T)
fn default() -> (A, Z, Y, X, W, V, U, T)
1.0.0 · Source§impl<B: Default, A: Default, Z: Default, Y: Default, X: Default, W: Default, V: Default, U: Default, T: Default> Default for (B, A, Z, Y, X, W, V, U, T)
impl<B: Default, A: Default, Z: Default, Y: Default, X: Default, W: Default, V: Default, U: Default, T: Default> Default for (B, A, Z, Y, X, W, V, U, T)
Source§fn default() -> (B, A, Z, Y, X, W, V, U, T)
fn default() -> (B, A, Z, Y, X, W, V, U, T)
1.0.0 · Source§impl<C: Default, B: Default, A: Default, Z: Default, Y: Default, X: Default, W: Default, V: Default, U: Default, T: Default> Default for (C, B, A, Z, Y, X, W, V, U, T)
impl<C: Default, B: Default, A: Default, Z: Default, Y: Default, X: Default, W: Default, V: Default, U: Default, T: Default> Default for (C, B, A, Z, Y, X, W, V, U, T)
Source§fn default() -> (C, B, A, Z, Y, X, W, V, U, T)
fn default() -> (C, B, A, Z, Y, X, W, V, U, T)
1.0.0 · Source§impl<D: Default, C: Default, B: Default, A: Default, Z: Default, Y: Default, X: Default, W: Default, V: Default, U: Default, T: Default> Default for (D, C, B, A, Z, Y, X, W, V, U, T)
impl<D: Default, C: Default, B: Default, A: Default, Z: Default, Y: Default, X: Default, W: Default, V: Default, U: Default, T: Default> Default for (D, C, B, A, Z, Y, X, W, V, U, T)
Source§fn default() -> (D, C, B, A, Z, Y, X, W, V, U, T)
fn default() -> (D, C, B, A, Z, Y, X, W, V, U, T)
1.0.0 · Source§impl<E: Default, D: Default, C: Default, B: Default, A: Default, Z: Default, Y: Default, X: Default, W: Default, V: Default, U: Default, T: Default> Default for (E, D, C, B, A, Z, Y, X, W, V, U, T)
impl<E: Default, D: Default, C: Default, B: Default, A: Default, Z: Default, Y: Default, X: Default, W: Default, V: Default, U: Default, T: Default> Default for (E, D, C, B, A, Z, Y, X, W, V, U, T)
Source§fn default() -> (E, D, C, B, A, Z, Y, X, W, V, U, T)
fn default() -> (E, D, C, B, A, Z, Y, X, W, V, U, T)
1.0.0 · Source§impl<T: Default> Default for (T₁, T₂, …, Tₙ)
This trait is implemented for tuples up to twelve items long.
impl<T: Default> Default for (T₁, T₂, …, Tₙ)
This trait is implemented for tuples up to twelve items long.
1.0.0 · Source§impl<W: Default, V: Default, U: Default, T: Default> Default for (W, V, U, T)
impl<W: Default, V: Default, U: Default, T: Default> Default for (W, V, U, T)
Source§fn default() -> (W, V, U, T)
fn default() -> (W, V, U, T)
1.0.0 · Source§impl<X: Default, W: Default, V: Default, U: Default, T: Default> Default for (X, W, V, U, T)
impl<X: Default, W: Default, V: Default, U: Default, T: Default> Default for (X, W, V, U, T)
Source§fn default() -> (X, W, V, U, T)
fn default() -> (X, W, V, U, T)
1.0.0 · Source§impl<Y: Default, X: Default, W: Default, V: Default, U: Default, T: Default> Default for (Y, X, W, V, U, T)
impl<Y: Default, X: Default, W: Default, V: Default, U: Default, T: Default> Default for (Y, X, W, V, U, T)
Source§fn default() -> (Y, X, W, V, U, T)
fn default() -> (Y, X, W, V, U, T)
1.0.0 · Source§impl<Z: Default, Y: Default, X: Default, W: Default, V: Default, U: Default, T: Default> Default for (Z, Y, X, W, V, U, T)
impl<Z: Default, Y: Default, X: Default, W: Default, V: Default, U: Default, T: Default> Default for (Z, Y, X, W, V, U, T)
Source§fn default() -> (Z, Y, X, W, V, U, T)
fn default() -> (Z, Y, X, W, V, U, T)
1.0.0 · Source§impl<A: Eq, Z: Eq, Y: Eq, X: Eq, W: Eq, V: Eq, U: Eq, T> Eq for (A, Z, Y, X, W, V, U, T)
impl<A: Eq, Z: Eq, Y: Eq, X: Eq, W: Eq, V: Eq, U: Eq, T> Eq for (A, Z, Y, X, W, V, U, T)
#[doc(hidden)] fn assert_receiver_is_total_eq(&self)
1.0.0 · Source§impl<B: Eq, A: Eq, Z: Eq, Y: Eq, X: Eq, W: Eq, V: Eq, U: Eq, T> Eq for (B, A, Z, Y, X, W, V, U, T)
impl<B: Eq, A: Eq, Z: Eq, Y: Eq, X: Eq, W: Eq, V: Eq, U: Eq, T> Eq for (B, A, Z, Y, X, W, V, U, T)
#[doc(hidden)] fn assert_receiver_is_total_eq(&self)
1.0.0 · Source§impl<C: Eq, B: Eq, A: Eq, Z: Eq, Y: Eq, X: Eq, W: Eq, V: Eq, U: Eq, T> Eq for (C, B, A, Z, Y, X, W, V, U, T)
impl<C: Eq, B: Eq, A: Eq, Z: Eq, Y: Eq, X: Eq, W: Eq, V: Eq, U: Eq, T> Eq for (C, B, A, Z, Y, X, W, V, U, T)
#[doc(hidden)] fn assert_receiver_is_total_eq(&self)
1.0.0 · Source§impl<D: Eq, C: Eq, B: Eq, A: Eq, Z: Eq, Y: Eq, X: Eq, W: Eq, V: Eq, U: Eq, T> Eq for (D, C, B, A, Z, Y, X, W, V, U, T)
impl<D: Eq, C: Eq, B: Eq, A: Eq, Z: Eq, Y: Eq, X: Eq, W: Eq, V: Eq, U: Eq, T> Eq for (D, C, B, A, Z, Y, X, W, V, U, T)
#[doc(hidden)] fn assert_receiver_is_total_eq(&self)
1.0.0 · Source§impl<E: Eq, D: Eq, C: Eq, B: Eq, A: Eq, Z: Eq, Y: Eq, X: Eq, W: Eq, V: Eq, U: Eq, T> Eq for (E, D, C, B, A, Z, Y, X, W, V, U, T)
impl<E: Eq, D: Eq, C: Eq, B: Eq, A: Eq, Z: Eq, Y: Eq, X: Eq, W: Eq, V: Eq, U: Eq, T> Eq for (E, D, C, B, A, Z, Y, X, W, V, U, T)
#[doc(hidden)] fn assert_receiver_is_total_eq(&self)
1.0.0 · Source§impl<T> Eq for (T₁, T₂, …, Tₙ)
This trait is implemented for tuples up to twelve items long.
impl<T> Eq for (T₁, T₂, …, Tₙ)
This trait is implemented for tuples up to twelve items long.
#[doc(hidden)] fn assert_receiver_is_total_eq(&self)
1.0.0 · Source§impl<U: Eq, T> Eq for (U, T)
impl<U: Eq, T> Eq for (U, T)
#[doc(hidden)] fn assert_receiver_is_total_eq(&self)
1.0.0 · Source§impl<V: Eq, U: Eq, T> Eq for (V, U, T)
impl<V: Eq, U: Eq, T> Eq for (V, U, T)
#[doc(hidden)] fn assert_receiver_is_total_eq(&self)
1.0.0 · Source§impl<W: Eq, V: Eq, U: Eq, T> Eq for (W, V, U, T)
impl<W: Eq, V: Eq, U: Eq, T> Eq for (W, V, U, T)
#[doc(hidden)] fn assert_receiver_is_total_eq(&self)
1.0.0 · Source§impl<X: Eq, W: Eq, V: Eq, U: Eq, T> Eq for (X, W, V, U, T)
impl<X: Eq, W: Eq, V: Eq, U: Eq, T> Eq for (X, W, V, U, T)
#[doc(hidden)] fn assert_receiver_is_total_eq(&self)
1.0.0 · Source§impl<Y: Eq, X: Eq, W: Eq, V: Eq, U: Eq, T> Eq for (Y, X, W, V, U, T)
impl<Y: Eq, X: Eq, W: Eq, V: Eq, U: Eq, T> Eq for (Y, X, W, V, U, T)
#[doc(hidden)] fn assert_receiver_is_total_eq(&self)
1.0.0 · Source§impl<Z: Eq, Y: Eq, X: Eq, W: Eq, V: Eq, U: Eq, T> Eq for (Z, Y, X, W, V, U, T)
impl<Z: Eq, Y: Eq, X: Eq, W: Eq, V: Eq, U: Eq, T> Eq for (Z, Y, X, W, V, U, T)
#[doc(hidden)] fn assert_receiver_is_total_eq(&self)
1.56.0 · Source§impl<A, EA> Extend<(A₁, A₂, …, Aₙ)> for (EA₁, EA₂, …, EAₙ)where
EA: Extend<A>,
This trait is implemented for tuples up to twelve items long. The impl
s for 1- and 3- through 12-ary tuples were stabilized after 2-tuples, in 1.85.0.
impl<A, EA> Extend<(A₁, A₂, …, Aₙ)> for (EA₁, EA₂, …, EAₙ)where
EA: Extend<A>,
This trait is implemented for tuples up to twelve items long. The impl
s for 1- and 3- through 12-ary tuples were stabilized after 2-tuples, in 1.85.0.
Source§fn extend<T: IntoIterator<Item = (A,)>>(&mut self, into_iter: T)
fn extend<T: IntoIterator<Item = (A,)>>(&mut self, into_iter: T)
Allows to extend
a tuple of collections that also implement Extend
.
See also: Iterator::unzip
§Examples
// Example given for a 2-tuple, but 1- through 12-tuples are supported
let mut tuple = (vec![0], vec![1]);
tuple.extend([(2, 3), (4, 5), (6, 7)]);
assert_eq!(tuple.0, [0, 2, 4, 6]);
assert_eq!(tuple.1, [1, 3, 5, 7]);
// also allows for arbitrarily nested tuples as elements
let mut nested_tuple = (vec![1], (vec![2], vec![3]));
nested_tuple.extend([(4, (5, 6)), (7, (8, 9))]);
let (a, (b, c)) = nested_tuple;
assert_eq!(a, [1, 4, 7]);
assert_eq!(b, [2, 5, 8]);
assert_eq!(c, [3, 6, 9]);
Source§fn extend_one(&mut self, item: (A,))
fn extend_one(&mut self, item: (A,))
extend_one
#72631)Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
extend_one
#72631)Source§unsafe fn extend_one_unchecked(&mut self, item: (A,))
unsafe fn extend_one_unchecked(&mut self, item: (A,))
extend_one_unchecked
)1.56.0 · Source§impl<B, A, EB, EA> Extend<(B, A)> for (EB, EA)
impl<B, A, EB, EA> Extend<(B, A)> for (EB, EA)
Source§fn extend<T: IntoIterator<Item = (B, A)>>(&mut self, into_iter: T)
fn extend<T: IntoIterator<Item = (B, A)>>(&mut self, into_iter: T)
Allows to extend
a tuple of collections that also implement Extend
.
See also: Iterator::unzip
§Examples
// Example given for a 2-tuple, but 1- through 12-tuples are supported
let mut tuple = (vec![0], vec![1]);
tuple.extend([(2, 3), (4, 5), (6, 7)]);
assert_eq!(tuple.0, [0, 2, 4, 6]);
assert_eq!(tuple.1, [1, 3, 5, 7]);
// also allows for arbitrarily nested tuples as elements
let mut nested_tuple = (vec![1], (vec![2], vec![3]));
nested_tuple.extend([(4, (5, 6)), (7, (8, 9))]);
let (a, (b, c)) = nested_tuple;
assert_eq!(a, [1, 4, 7]);
assert_eq!(b, [2, 5, 8]);
assert_eq!(c, [3, 6, 9]);
Source§fn extend_one(&mut self, item: (B, A))
fn extend_one(&mut self, item: (B, A))
extend_one
#72631)Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
extend_one
#72631)Source§unsafe fn extend_one_unchecked(&mut self, item: (B, A))
unsafe fn extend_one_unchecked(&mut self, item: (B, A))
extend_one_unchecked
)1.56.0 · Source§impl<C, B, A, EC, EB, EA> Extend<(C, B, A)> for (EC, EB, EA)
impl<C, B, A, EC, EB, EA> Extend<(C, B, A)> for (EC, EB, EA)
Source§fn extend<T: IntoIterator<Item = (C, B, A)>>(&mut self, into_iter: T)
fn extend<T: IntoIterator<Item = (C, B, A)>>(&mut self, into_iter: T)
Allows to extend
a tuple of collections that also implement Extend
.
See also: Iterator::unzip
§Examples
// Example given for a 2-tuple, but 1- through 12-tuples are supported
let mut tuple = (vec![0], vec![1]);
tuple.extend([(2, 3), (4, 5), (6, 7)]);
assert_eq!(tuple.0, [0, 2, 4, 6]);
assert_eq!(tuple.1, [1, 3, 5, 7]);
// also allows for arbitrarily nested tuples as elements
let mut nested_tuple = (vec![1], (vec![2], vec![3]));
nested_tuple.extend([(4, (5, 6)), (7, (8, 9))]);
let (a, (b, c)) = nested_tuple;
assert_eq!(a, [1, 4, 7]);
assert_eq!(b, [2, 5, 8]);
assert_eq!(c, [3, 6, 9]);
Source§fn extend_one(&mut self, item: (C, B, A))
fn extend_one(&mut self, item: (C, B, A))
extend_one
#72631)Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
extend_one
#72631)Source§unsafe fn extend_one_unchecked(&mut self, item: (C, B, A))
unsafe fn extend_one_unchecked(&mut self, item: (C, B, A))
extend_one_unchecked
)1.56.0 · Source§impl<D, C, B, A, ED, EC, EB, EA> Extend<(D, C, B, A)> for (ED, EC, EB, EA)
impl<D, C, B, A, ED, EC, EB, EA> Extend<(D, C, B, A)> for (ED, EC, EB, EA)
Source§fn extend<T: IntoIterator<Item = (D, C, B, A)>>(&mut self, into_iter: T)
fn extend<T: IntoIterator<Item = (D, C, B, A)>>(&mut self, into_iter: T)
Allows to extend
a tuple of collections that also implement Extend
.
See also: Iterator::unzip
§Examples
// Example given for a 2-tuple, but 1- through 12-tuples are supported
let mut tuple = (vec![0], vec![1]);
tuple.extend([(2, 3), (4, 5), (6, 7)]);
assert_eq!(tuple.0, [0, 2, 4, 6]);
assert_eq!(tuple.1, [1, 3, 5, 7]);
// also allows for arbitrarily nested tuples as elements
let mut nested_tuple = (vec![1], (vec![2], vec![3]));
nested_tuple.extend([(4, (5, 6)), (7, (8, 9))]);
let (a, (b, c)) = nested_tuple;
assert_eq!(a, [1, 4, 7]);
assert_eq!(b, [2, 5, 8]);
assert_eq!(c, [3, 6, 9]);
Source§fn extend_one(&mut self, item: (D, C, B, A))
fn extend_one(&mut self, item: (D, C, B, A))
extend_one
#72631)Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
extend_one
#72631)Source§unsafe fn extend_one_unchecked(&mut self, item: (D, C, B, A))
unsafe fn extend_one_unchecked(&mut self, item: (D, C, B, A))
extend_one_unchecked
)1.56.0 · Source§impl<E, D, C, B, A, EE, ED, EC, EB, EA> Extend<(E, D, C, B, A)> for (EE, ED, EC, EB, EA)
impl<E, D, C, B, A, EE, ED, EC, EB, EA> Extend<(E, D, C, B, A)> for (EE, ED, EC, EB, EA)
Source§fn extend<T: IntoIterator<Item = (E, D, C, B, A)>>(&mut self, into_iter: T)
fn extend<T: IntoIterator<Item = (E, D, C, B, A)>>(&mut self, into_iter: T)
Allows to extend
a tuple of collections that also implement Extend
.
See also: Iterator::unzip
§Examples
// Example given for a 2-tuple, but 1- through 12-tuples are supported
let mut tuple = (vec![0], vec![1]);
tuple.extend([(2, 3), (4, 5), (6, 7)]);
assert_eq!(tuple.0, [0, 2, 4, 6]);
assert_eq!(tuple.1, [1, 3, 5, 7]);
// also allows for arbitrarily nested tuples as elements
let mut nested_tuple = (vec![1], (vec![2], vec![3]));
nested_tuple.extend([(4, (5, 6)), (7, (8, 9))]);
let (a, (b, c)) = nested_tuple;
assert_eq!(a, [1, 4, 7]);
assert_eq!(b, [2, 5, 8]);
assert_eq!(c, [3, 6, 9]);
Source§fn extend_one(&mut self, item: (E, D, C, B, A))
fn extend_one(&mut self, item: (E, D, C, B, A))
extend_one
#72631)Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
extend_one
#72631)Source§unsafe fn extend_one_unchecked(&mut self, item: (E, D, C, B, A))
unsafe fn extend_one_unchecked(&mut self, item: (E, D, C, B, A))
extend_one_unchecked
)1.56.0 · Source§impl<F, E, D, C, B, A, EF, EE, ED, EC, EB, EA> Extend<(F, E, D, C, B, A)> for (EF, EE, ED, EC, EB, EA)
impl<F, E, D, C, B, A, EF, EE, ED, EC, EB, EA> Extend<(F, E, D, C, B, A)> for (EF, EE, ED, EC, EB, EA)
Source§fn extend<T: IntoIterator<Item = (F, E, D, C, B, A)>>(&mut self, into_iter: T)
fn extend<T: IntoIterator<Item = (F, E, D, C, B, A)>>(&mut self, into_iter: T)
Allows to extend
a tuple of collections that also implement Extend
.
See also: Iterator::unzip
§Examples
// Example given for a 2-tuple, but 1- through 12-tuples are supported
let mut tuple = (vec![0], vec![1]);
tuple.extend([(2, 3), (4, 5), (6, 7)]);
assert_eq!(tuple.0, [0, 2, 4, 6]);
assert_eq!(tuple.1, [1, 3, 5, 7]);
// also allows for arbitrarily nested tuples as elements
let mut nested_tuple = (vec![1], (vec![2], vec![3]));
nested_tuple.extend([(4, (5, 6)), (7, (8, 9))]);
let (a, (b, c)) = nested_tuple;
assert_eq!(a, [1, 4, 7]);
assert_eq!(b, [2, 5, 8]);
assert_eq!(c, [3, 6, 9]);
Source§fn extend_one(&mut self, item: (F, E, D, C, B, A))
fn extend_one(&mut self, item: (F, E, D, C, B, A))
extend_one
#72631)Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
extend_one
#72631)Source§unsafe fn extend_one_unchecked(&mut self, item: (F, E, D, C, B, A))
unsafe fn extend_one_unchecked(&mut self, item: (F, E, D, C, B, A))
extend_one_unchecked
)1.56.0 · Source§impl<G, F, E, D, C, B, A, EG, EF, EE, ED, EC, EB, EA> Extend<(G, F, E, D, C, B, A)> for (EG, EF, EE, ED, EC, EB, EA)
impl<G, F, E, D, C, B, A, EG, EF, EE, ED, EC, EB, EA> Extend<(G, F, E, D, C, B, A)> for (EG, EF, EE, ED, EC, EB, EA)
Source§fn extend<T: IntoIterator<Item = (G, F, E, D, C, B, A)>>(
&mut self,
into_iter: T,
)
fn extend<T: IntoIterator<Item = (G, F, E, D, C, B, A)>>( &mut self, into_iter: T, )
Allows to extend
a tuple of collections that also implement Extend
.
See also: Iterator::unzip
§Examples
// Example given for a 2-tuple, but 1- through 12-tuples are supported
let mut tuple = (vec![0], vec![1]);
tuple.extend([(2, 3), (4, 5), (6, 7)]);
assert_eq!(tuple.0, [0, 2, 4, 6]);
assert_eq!(tuple.1, [1, 3, 5, 7]);
// also allows for arbitrarily nested tuples as elements
let mut nested_tuple = (vec![1], (vec![2], vec![3]));
nested_tuple.extend([(4, (5, 6)), (7, (8, 9))]);
let (a, (b, c)) = nested_tuple;
assert_eq!(a, [1, 4, 7]);
assert_eq!(b, [2, 5, 8]);
assert_eq!(c, [3, 6, 9]);
Source§fn extend_one(&mut self, item: (G, F, E, D, C, B, A))
fn extend_one(&mut self, item: (G, F, E, D, C, B, A))
extend_one
#72631)Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
extend_one
#72631)Source§unsafe fn extend_one_unchecked(&mut self, item: (G, F, E, D, C, B, A))
unsafe fn extend_one_unchecked(&mut self, item: (G, F, E, D, C, B, A))
extend_one_unchecked
)1.56.0 · Source§impl<H, G, F, E, D, C, B, A, EH, EG, EF, EE, ED, EC, EB, EA> Extend<(H, G, F, E, D, C, B, A)> for (EH, EG, EF, EE, ED, EC, EB, EA)
impl<H, G, F, E, D, C, B, A, EH, EG, EF, EE, ED, EC, EB, EA> Extend<(H, G, F, E, D, C, B, A)> for (EH, EG, EF, EE, ED, EC, EB, EA)
Source§fn extend<T: IntoIterator<Item = (H, G, F, E, D, C, B, A)>>(
&mut self,
into_iter: T,
)
fn extend<T: IntoIterator<Item = (H, G, F, E, D, C, B, A)>>( &mut self, into_iter: T, )
Allows to extend
a tuple of collections that also implement Extend
.
See also: Iterator::unzip
§Examples
// Example given for a 2-tuple, but 1- through 12-tuples are supported
let mut tuple = (vec![0], vec![1]);
tuple.extend([(2, 3), (4, 5), (6, 7)]);
assert_eq!(tuple.0, [0, 2, 4, 6]);
assert_eq!(tuple.1, [1, 3, 5, 7]);
// also allows for arbitrarily nested tuples as elements
let mut nested_tuple = (vec![1], (vec![2], vec![3]));
nested_tuple.extend([(4, (5, 6)), (7, (8, 9))]);
let (a, (b, c)) = nested_tuple;
assert_eq!(a, [1, 4, 7]);
assert_eq!(b, [2, 5, 8]);
assert_eq!(c, [3, 6, 9]);
Source§fn extend_one(&mut self, item: (H, G, F, E, D, C, B, A))
fn extend_one(&mut self, item: (H, G, F, E, D, C, B, A))
extend_one
#72631)Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
extend_one
#72631)Source§unsafe fn extend_one_unchecked(&mut self, item: (H, G, F, E, D, C, B, A))
unsafe fn extend_one_unchecked(&mut self, item: (H, G, F, E, D, C, B, A))
extend_one_unchecked
)1.56.0 · Source§impl<I, H, G, F, E, D, C, B, A, EI, EH, EG, EF, EE, ED, EC, EB, EA> Extend<(I, H, G, F, E, D, C, B, A)> for (EI, EH, EG, EF, EE, ED, EC, EB, EA)
impl<I, H, G, F, E, D, C, B, A, EI, EH, EG, EF, EE, ED, EC, EB, EA> Extend<(I, H, G, F, E, D, C, B, A)> for (EI, EH, EG, EF, EE, ED, EC, EB, EA)
Source§fn extend<T: IntoIterator<Item = (I, H, G, F, E, D, C, B, A)>>(
&mut self,
into_iter: T,
)
fn extend<T: IntoIterator<Item = (I, H, G, F, E, D, C, B, A)>>( &mut self, into_iter: T, )
Allows to extend
a tuple of collections that also implement Extend
.
See also: Iterator::unzip
§Examples
// Example given for a 2-tuple, but 1- through 12-tuples are supported
let mut tuple = (vec![0], vec![1]);
tuple.extend([(2, 3), (4, 5), (6, 7)]);
assert_eq!(tuple.0, [0, 2, 4, 6]);
assert_eq!(tuple.1, [1, 3, 5, 7]);
// also allows for arbitrarily nested tuples as elements
let mut nested_tuple = (vec![1], (vec![2], vec![3]));
nested_tuple.extend([(4, (5, 6)), (7, (8, 9))]);
let (a, (b, c)) = nested_tuple;
assert_eq!(a, [1, 4, 7]);
assert_eq!(b, [2, 5, 8]);
assert_eq!(c, [3, 6, 9]);
Source§fn extend_one(&mut self, item: (I, H, G, F, E, D, C, B, A))
fn extend_one(&mut self, item: (I, H, G, F, E, D, C, B, A))
extend_one
#72631)Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
extend_one
#72631)Source§unsafe fn extend_one_unchecked(&mut self, item: (I, H, G, F, E, D, C, B, A))
unsafe fn extend_one_unchecked(&mut self, item: (I, H, G, F, E, D, C, B, A))
extend_one_unchecked
)1.56.0 · Source§impl<J, I, H, G, F, E, D, C, B, A, EJ, EI, EH, EG, EF, EE, ED, EC, EB, EA> Extend<(J, I, H, G, F, E, D, C, B, A)> for (EJ, EI, EH, EG, EF, EE, ED, EC, EB, EA)
impl<J, I, H, G, F, E, D, C, B, A, EJ, EI, EH, EG, EF, EE, ED, EC, EB, EA> Extend<(J, I, H, G, F, E, D, C, B, A)> for (EJ, EI, EH, EG, EF, EE, ED, EC, EB, EA)
Source§fn extend<T: IntoIterator<Item = (J, I, H, G, F, E, D, C, B, A)>>(
&mut self,
into_iter: T,
)
fn extend<T: IntoIterator<Item = (J, I, H, G, F, E, D, C, B, A)>>( &mut self, into_iter: T, )
Allows to extend
a tuple of collections that also implement Extend
.
See also: Iterator::unzip
§Examples
// Example given for a 2-tuple, but 1- through 12-tuples are supported
let mut tuple = (vec![0], vec![1]);
tuple.extend([(2, 3), (4, 5), (6, 7)]);
assert_eq!(tuple.0, [0, 2, 4, 6]);
assert_eq!(tuple.1, [1, 3, 5, 7]);
// also allows for arbitrarily nested tuples as elements
let mut nested_tuple = (vec![1], (vec![2], vec![3]));
nested_tuple.extend([(4, (5, 6)), (7, (8, 9))]);
let (a, (b, c)) = nested_tuple;
assert_eq!(a, [1, 4, 7]);
assert_eq!(b, [2, 5, 8]);
assert_eq!(c, [3, 6, 9]);
Source§fn extend_one(&mut self, item: (J, I, H, G, F, E, D, C, B, A))
fn extend_one(&mut self, item: (J, I, H, G, F, E, D, C, B, A))
extend_one
#72631)Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
extend_one
#72631)Source§unsafe fn extend_one_unchecked(&mut self, item: (J, I, H, G, F, E, D, C, B, A))
unsafe fn extend_one_unchecked(&mut self, item: (J, I, H, G, F, E, D, C, B, A))
extend_one_unchecked
)1.56.0 · Source§impl<K, J, I, H, G, F, E, D, C, B, A, EK, EJ, EI, EH, EG, EF, EE, ED, EC, EB, EA> Extend<(K, J, I, H, G, F, E, D, C, B, A)> for (EK, EJ, EI, EH, EG, EF, EE, ED, EC, EB, EA)
impl<K, J, I, H, G, F, E, D, C, B, A, EK, EJ, EI, EH, EG, EF, EE, ED, EC, EB, EA> Extend<(K, J, I, H, G, F, E, D, C, B, A)> for (EK, EJ, EI, EH, EG, EF, EE, ED, EC, EB, EA)
Source§fn extend<T: IntoIterator<Item = (K, J, I, H, G, F, E, D, C, B, A)>>(
&mut self,
into_iter: T,
)
fn extend<T: IntoIterator<Item = (K, J, I, H, G, F, E, D, C, B, A)>>( &mut self, into_iter: T, )
Allows to extend
a tuple of collections that also implement Extend
.
See also: Iterator::unzip
§Examples
// Example given for a 2-tuple, but 1- through 12-tuples are supported
let mut tuple = (vec![0], vec![1]);
tuple.extend([(2, 3), (4, 5), (6, 7)]);
assert_eq!(tuple.0, [0, 2, 4, 6]);
assert_eq!(tuple.1, [1, 3, 5, 7]);
// also allows for arbitrarily nested tuples as elements
let mut nested_tuple = (vec![1], (vec![2], vec![3]));
nested_tuple.extend([(4, (5, 6)), (7, (8, 9))]);
let (a, (b, c)) = nested_tuple;
assert_eq!(a, [1, 4, 7]);
assert_eq!(b, [2, 5, 8]);
assert_eq!(c, [3, 6, 9]);
Source§fn extend_one(&mut self, item: (K, J, I, H, G, F, E, D, C, B, A))
fn extend_one(&mut self, item: (K, J, I, H, G, F, E, D, C, B, A))
extend_one
#72631)Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
extend_one
#72631)Source§unsafe fn extend_one_unchecked(
&mut self,
item: (K, J, I, H, G, F, E, D, C, B, A),
)
unsafe fn extend_one_unchecked( &mut self, item: (K, J, I, H, G, F, E, D, C, B, A), )
extend_one_unchecked
)1.56.0 · Source§impl<L, K, J, I, H, G, F, E, D, C, B, A, EL, EK, EJ, EI, EH, EG, EF, EE, ED, EC, EB, EA> Extend<(L, K, J, I, H, G, F, E, D, C, B, A)> for (EL, EK, EJ, EI, EH, EG, EF, EE, ED, EC, EB, EA)
impl<L, K, J, I, H, G, F, E, D, C, B, A, EL, EK, EJ, EI, EH, EG, EF, EE, ED, EC, EB, EA> Extend<(L, K, J, I, H, G, F, E, D, C, B, A)> for (EL, EK, EJ, EI, EH, EG, EF, EE, ED, EC, EB, EA)
Source§fn extend<T: IntoIterator<Item = (L, K, J, I, H, G, F, E, D, C, B, A)>>(
&mut self,
into_iter: T,
)
fn extend<T: IntoIterator<Item = (L, K, J, I, H, G, F, E, D, C, B, A)>>( &mut self, into_iter: T, )
Allows to extend
a tuple of collections that also implement Extend
.
See also: Iterator::unzip
§Examples
// Example given for a 2-tuple, but 1- through 12-tuples are supported
let mut tuple = (vec![0], vec![1]);
tuple.extend([(2, 3), (4, 5), (6, 7)]);
assert_eq!(tuple.0, [0, 2, 4, 6]);
assert_eq!(tuple.1, [1, 3, 5, 7]);
// also allows for arbitrarily nested tuples as elements
let mut nested_tuple = (vec![1], (vec![2], vec![3]));
nested_tuple.extend([(4, (5, 6)), (7, (8, 9))]);
let (a, (b, c)) = nested_tuple;
assert_eq!(a, [1, 4, 7]);
assert_eq!(b, [2, 5, 8]);
assert_eq!(c, [3, 6, 9]);
Source§fn extend_one(&mut self, item: (L, K, J, I, H, G, F, E, D, C, B, A))
fn extend_one(&mut self, item: (L, K, J, I, H, G, F, E, D, C, B, A))
extend_one
#72631)Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
extend_one
#72631)Source§unsafe fn extend_one_unchecked(
&mut self,
item: (L, K, J, I, H, G, F, E, D, C, B, A),
)
unsafe fn extend_one_unchecked( &mut self, item: (L, K, J, I, H, G, F, E, D, C, B, A), )
extend_one_unchecked
)1.71.0 · Source§impl<T> From<[T; N]> for (T₁, T₂, …, Tₙ)
This trait is implemented for tuples up to twelve items long.
impl<T> From<[T; N]> for (T₁, T₂, …, Tₙ)
This trait is implemented for tuples up to twelve items long.
1.71.0 · Source§impl<T> From<[T; 10]> for (T, T, T, T, T, T, T, T, T, T)
impl<T> From<[T; 10]> for (T, T, T, T, T, T, T, T, T, T)
1.71.0 · Source§impl<T> From<[T; 11]> for (T, T, T, T, T, T, T, T, T, T, T)
impl<T> From<[T; 11]> for (T, T, T, T, T, T, T, T, T, T, T)
1.71.0 · Source§impl<T> From<[T; 12]> for (T, T, T, T, T, T, T, T, T, T, T, T)
impl<T> From<[T; 12]> for (T, T, T, T, T, T, T, T, T, T, T, T)
1.71.0 · Source§impl<T> From<[T; 4]> for (T, T, T, T)
impl<T> From<[T; 4]> for (T, T, T, T)
1.71.0 · Source§impl<T> From<[T; 5]> for (T, T, T, T, T)
impl<T> From<[T; 5]> for (T, T, T, T, T)
1.71.0 · Source§impl<T> From<[T; 6]> for (T, T, T, T, T, T)
impl<T> From<[T; 6]> for (T, T, T, T, T, T)
1.71.0 · Source§impl<T> From<[T; 7]> for (T, T, T, T, T, T, T)
impl<T> From<[T; 7]> for (T, T, T, T, T, T, T)
1.71.0 · Source§impl<T> From<[T; 8]> for (T, T, T, T, T, T, T, T)
impl<T> From<[T; 8]> for (T, T, T, T, T, T, T, T)
1.71.0 · Source§impl<T> From<[T; 9]> for (T, T, T, T, T, T, T, T, T)
impl<T> From<[T; 9]> for (T, T, T, T, T, T, T, T, T)
1.17.0 · Source§impl<I: Into<IpAddr>> From<(I, u16)> for SocketAddr
impl<I: Into<IpAddr>> From<(I, u16)> for SocketAddr
Source§fn from(pieces: (I, u16)) -> SocketAddr
fn from(pieces: (I, u16)) -> SocketAddr
Converts a tuple struct (Into<IpAddr
>, u16
) into a SocketAddr
.
This conversion creates a SocketAddr::V4
for an IpAddr::V4
and creates a SocketAddr::V6
for an IpAddr::V6
.
u16
is treated as port of the newly created SocketAddr
.
1.71.0 · Source§impl<T> From<(T₁, T₂, …, Tₙ)> for [T; N]
This trait is implemented for tuples up to twelve items long.
impl<T> From<(T₁, T₂, …, Tₙ)> for [T; N]
This trait is implemented for tuples up to twelve items long.
1.71.0 · Source§impl<T> From<(T, T, T, T)> for [T; 4]
impl<T> From<(T, T, T, T)> for [T; 4]
Source§fn from(tuple: (T, T, T, T)) -> Self
fn from(tuple: (T, T, T, T)) -> Self
1.71.0 · Source§impl<T> From<(T, T, T, T, T)> for [T; 5]
impl<T> From<(T, T, T, T, T)> for [T; 5]
Source§fn from(tuple: (T, T, T, T, T)) -> Self
fn from(tuple: (T, T, T, T, T)) -> Self
1.71.0 · Source§impl<T> From<(T, T, T, T, T, T)> for [T; 6]
impl<T> From<(T, T, T, T, T, T)> for [T; 6]
Source§fn from(tuple: (T, T, T, T, T, T)) -> Self
fn from(tuple: (T, T, T, T, T, T)) -> Self
1.71.0 · Source§impl<T> From<(T, T, T, T, T, T, T)> for [T; 7]
impl<T> From<(T, T, T, T, T, T, T)> for [T; 7]
Source§fn from(tuple: (T, T, T, T, T, T, T)) -> Self
fn from(tuple: (T, T, T, T, T, T, T)) -> Self
1.71.0 · Source§impl<T> From<(T, T, T, T, T, T, T, T)> for [T; 8]
impl<T> From<(T, T, T, T, T, T, T, T)> for [T; 8]
Source§fn from(tuple: (T, T, T, T, T, T, T, T)) -> Self
fn from(tuple: (T, T, T, T, T, T, T, T)) -> Self
1.71.0 · Source§impl<T> From<(T, T, T, T, T, T, T, T, T)> for [T; 9]
impl<T> From<(T, T, T, T, T, T, T, T, T)> for [T; 9]
Source§fn from(tuple: (T, T, T, T, T, T, T, T, T)) -> Self
fn from(tuple: (T, T, T, T, T, T, T, T, T)) -> Self
1.71.0 · Source§impl<T> From<(T, T, T, T, T, T, T, T, T, T)> for [T; 10]
impl<T> From<(T, T, T, T, T, T, T, T, T, T)> for [T; 10]
Source§fn from(tuple: (T, T, T, T, T, T, T, T, T, T)) -> Self
fn from(tuple: (T, T, T, T, T, T, T, T, T, T)) -> Self
1.71.0 · Source§impl<T> From<(T, T, T, T, T, T, T, T, T, T, T)> for [T; 11]
impl<T> From<(T, T, T, T, T, T, T, T, T, T, T)> for [T; 11]
Source§fn from(tuple: (T, T, T, T, T, T, T, T, T, T, T)) -> Self
fn from(tuple: (T, T, T, T, T, T, T, T, T, T, T)) -> Self
1.71.0 · Source§impl<T> From<(T, T, T, T, T, T, T, T, T, T, T, T)> for [T; 12]
impl<T> From<(T, T, T, T, T, T, T, T, T, T, T, T)> for [T; 12]
Source§fn from(tuple: (T, T, T, T, T, T, T, T, T, T, T, T)) -> Self
fn from(tuple: (T, T, T, T, T, T, T, T, T, T, T, T)) -> Self
1.79.0 · Source§impl<A, EA> FromIterator<(EA₁, EA₂, …, EAₙ)> for (A₁, A₂, …, Aₙ)
impl<A, EA> FromIterator<(EA₁, EA₂, …, EAₙ)> for (A₁, A₂, …, Aₙ)
This is similar to Iterator::unzip
, but is also composable with other FromIterator
implementations:
let string = "1,2,123,4";
// Example given for a 2-tuple, but 1- through 12-tuples are supported
let (numbers, lengths): (Vec<_>, Vec<_>) = string
.split(',')
.map(|s| s.parse().map(|n: u32| (n, s.len())))
.collect::<Result<_, _>>()?;
assert_eq!(numbers, [1, 2, 123, 4]);
assert_eq!(lengths, [1, 1, 3, 1]);
This trait is implemented for tuples up to twelve items long. The impl
s for 1- and 3- through 12-ary tuples were stabilized after 2-tuples, in 1.85.0.
1.79.0 · Source§impl<B, A, EB, EA> FromIterator<(EB, EA)> for (B, A)
impl<B, A, EB, EA> FromIterator<(EB, EA)> for (B, A)
This is similar to Iterator::unzip
, but is also composable with other FromIterator
implementations:
let string = "1,2,123,4";
// Example given for a 2-tuple, but 1- through 12-tuples are supported
let (numbers, lengths): (Vec<_>, Vec<_>) = string
.split(',')
.map(|s| s.parse().map(|n: u32| (n, s.len())))
.collect::<Result<_, _>>()?;
assert_eq!(numbers, [1, 2, 123, 4]);
assert_eq!(lengths, [1, 1, 3, 1]);
1.79.0 · Source§impl<C, B, A, EC, EB, EA> FromIterator<(EC, EB, EA)> for (C, B, A)
impl<C, B, A, EC, EB, EA> FromIterator<(EC, EB, EA)> for (C, B, A)
This is similar to Iterator::unzip
, but is also composable with other FromIterator
implementations:
let string = "1,2,123,4";
// Example given for a 2-tuple, but 1- through 12-tuples are supported
let (numbers, lengths): (Vec<_>, Vec<_>) = string
.split(',')
.map(|s| s.parse().map(|n: u32| (n, s.len())))
.collect::<Result<_, _>>()?;
assert_eq!(numbers, [1, 2, 123, 4]);
assert_eq!(lengths, [1, 1, 3, 1]);
Source§fn from_iter<Iter: IntoIterator<Item = (EC, EB, EA)>>(iter: Iter) -> Self
fn from_iter<Iter: IntoIterator<Item = (EC, EB, EA)>>(iter: Iter) -> Self
1.79.0 · Source§impl<D, C, B, A, ED, EC, EB, EA> FromIterator<(ED, EC, EB, EA)> for (D, C, B, A)
impl<D, C, B, A, ED, EC, EB, EA> FromIterator<(ED, EC, EB, EA)> for (D, C, B, A)
This is similar to Iterator::unzip
, but is also composable with other FromIterator
implementations:
let string = "1,2,123,4";
// Example given for a 2-tuple, but 1- through 12-tuples are supported
let (numbers, lengths): (Vec<_>, Vec<_>) = string
.split(',')
.map(|s| s.parse().map(|n: u32| (n, s.len())))
.collect::<Result<_, _>>()?;
assert_eq!(numbers, [1, 2, 123, 4]);
assert_eq!(lengths, [1, 1, 3, 1]);
Source§fn from_iter<Iter: IntoIterator<Item = (ED, EC, EB, EA)>>(iter: Iter) -> Self
fn from_iter<Iter: IntoIterator<Item = (ED, EC, EB, EA)>>(iter: Iter) -> Self
1.79.0 · Source§impl<E, D, C, B, A, EE, ED, EC, EB, EA> FromIterator<(EE, ED, EC, EB, EA)> for (E, D, C, B, A)
impl<E, D, C, B, A, EE, ED, EC, EB, EA> FromIterator<(EE, ED, EC, EB, EA)> for (E, D, C, B, A)
This is similar to Iterator::unzip
, but is also composable with other FromIterator
implementations:
let string = "1,2,123,4";
// Example given for a 2-tuple, but 1- through 12-tuples are supported
let (numbers, lengths): (Vec<_>, Vec<_>) = string
.split(',')
.map(|s| s.parse().map(|n: u32| (n, s.len())))
.collect::<Result<_, _>>()?;
assert_eq!(numbers, [1, 2, 123, 4]);
assert_eq!(lengths, [1, 1, 3, 1]);
Source§fn from_iter<Iter: IntoIterator<Item = (EE, ED, EC, EB, EA)>>(
iter: Iter,
) -> Self
fn from_iter<Iter: IntoIterator<Item = (EE, ED, EC, EB, EA)>>( iter: Iter, ) -> Self
1.79.0 · Source§impl<F, E, D, C, B, A, EF, EE, ED, EC, EB, EA> FromIterator<(EF, EE, ED, EC, EB, EA)> for (F, E, D, C, B, A)
impl<F, E, D, C, B, A, EF, EE, ED, EC, EB, EA> FromIterator<(EF, EE, ED, EC, EB, EA)> for (F, E, D, C, B, A)
This is similar to Iterator::unzip
, but is also composable with other FromIterator
implementations:
let string = "1,2,123,4";
// Example given for a 2-tuple, but 1- through 12-tuples are supported
let (numbers, lengths): (Vec<_>, Vec<_>) = string
.split(',')
.map(|s| s.parse().map(|n: u32| (n, s.len())))
.collect::<Result<_, _>>()?;
assert_eq!(numbers, [1, 2, 123, 4]);
assert_eq!(lengths, [1, 1, 3, 1]);
Source§fn from_iter<Iter: IntoIterator<Item = (EF, EE, ED, EC, EB, EA)>>(
iter: Iter,
) -> Self
fn from_iter<Iter: IntoIterator<Item = (EF, EE, ED, EC, EB, EA)>>( iter: Iter, ) -> Self
1.79.0 · Source§impl<G, F, E, D, C, B, A, EG, EF, EE, ED, EC, EB, EA> FromIterator<(EG, EF, EE, ED, EC, EB, EA)> for (G, F, E, D, C, B, A)
impl<G, F, E, D, C, B, A, EG, EF, EE, ED, EC, EB, EA> FromIterator<(EG, EF, EE, ED, EC, EB, EA)> for (G, F, E, D, C, B, A)
This is similar to Iterator::unzip
, but is also composable with other FromIterator
implementations:
let string = "1,2,123,4";
// Example given for a 2-tuple, but 1- through 12-tuples are supported
let (numbers, lengths): (Vec<_>, Vec<_>) = string
.split(',')
.map(|s| s.parse().map(|n: u32| (n, s.len())))
.collect::<Result<_, _>>()?;
assert_eq!(numbers, [1, 2, 123, 4]);
assert_eq!(lengths, [1, 1, 3, 1]);
Source§fn from_iter<Iter: IntoIterator<Item = (EG, EF, EE, ED, EC, EB, EA)>>(
iter: Iter,
) -> Self
fn from_iter<Iter: IntoIterator<Item = (EG, EF, EE, ED, EC, EB, EA)>>( iter: Iter, ) -> Self
1.79.0 · Source§impl<H, G, F, E, D, C, B, A, EH, EG, EF, EE, ED, EC, EB, EA> FromIterator<(EH, EG, EF, EE, ED, EC, EB, EA)> for (H, G, F, E, D, C, B, A)
impl<H, G, F, E, D, C, B, A, EH, EG, EF, EE, ED, EC, EB, EA> FromIterator<(EH, EG, EF, EE, ED, EC, EB, EA)> for (H, G, F, E, D, C, B, A)
This is similar to Iterator::unzip
, but is also composable with other FromIterator
implementations:
let string = "1,2,123,4";
// Example given for a 2-tuple, but 1- through 12-tuples are supported
let (numbers, lengths): (Vec<_>, Vec<_>) = string
.split(',')
.map(|s| s.parse().map(|n: u32| (n, s.len())))
.collect::<Result<_, _>>()?;
assert_eq!(numbers, [1, 2, 123, 4]);
assert_eq!(lengths, [1, 1, 3, 1]);
Source§fn from_iter<Iter: IntoIterator<Item = (EH, EG, EF, EE, ED, EC, EB, EA)>>(
iter: Iter,
) -> Self
fn from_iter<Iter: IntoIterator<Item = (EH, EG, EF, EE, ED, EC, EB, EA)>>( iter: Iter, ) -> Self
1.79.0 · Source§impl<I, H, G, F, E, D, C, B, A, EI, EH, EG, EF, EE, ED, EC, EB, EA> FromIterator<(EI, EH, EG, EF, EE, ED, EC, EB, EA)> for (I, H, G, F, E, D, C, B, A)
impl<I, H, G, F, E, D, C, B, A, EI, EH, EG, EF, EE, ED, EC, EB, EA> FromIterator<(EI, EH, EG, EF, EE, ED, EC, EB, EA)> for (I, H, G, F, E, D, C, B, A)
This is similar to Iterator::unzip
, but is also composable with other FromIterator
implementations:
let string = "1,2,123,4";
// Example given for a 2-tuple, but 1- through 12-tuples are supported
let (numbers, lengths): (Vec<_>, Vec<_>) = string
.split(',')
.map(|s| s.parse().map(|n: u32| (n, s.len())))
.collect::<Result<_, _>>()?;
assert_eq!(numbers, [1, 2, 123, 4]);
assert_eq!(lengths, [1, 1, 3, 1]);
Source§fn from_iter<Iter: IntoIterator<Item = (EI, EH, EG, EF, EE, ED, EC, EB, EA)>>(
iter: Iter,
) -> Self
fn from_iter<Iter: IntoIterator<Item = (EI, EH, EG, EF, EE, ED, EC, EB, EA)>>( iter: Iter, ) -> Self
1.79.0 · Source§impl<J, I, H, G, F, E, D, C, B, A, EJ, EI, EH, EG, EF, EE, ED, EC, EB, EA> FromIterator<(EJ, EI, EH, EG, EF, EE, ED, EC, EB, EA)> for (J, I, H, G, F, E, D, C, B, A)
impl<J, I, H, G, F, E, D, C, B, A, EJ, EI, EH, EG, EF, EE, ED, EC, EB, EA> FromIterator<(EJ, EI, EH, EG, EF, EE, ED, EC, EB, EA)> for (J, I, H, G, F, E, D, C, B, A)
This is similar to Iterator::unzip
, but is also composable with other FromIterator
implementations:
let string = "1,2,123,4";
// Example given for a 2-tuple, but 1- through 12-tuples are supported
let (numbers, lengths): (Vec<_>, Vec<_>) = string
.split(',')
.map(|s| s.parse().map(|n: u32| (n, s.len())))
.collect::<Result<_, _>>()?;
assert_eq!(numbers, [1, 2, 123, 4]);
assert_eq!(lengths, [1, 1, 3, 1]);
Source§fn from_iter<Iter: IntoIterator<Item = (EJ, EI, EH, EG, EF, EE, ED, EC, EB, EA)>>(
iter: Iter,
) -> Self
fn from_iter<Iter: IntoIterator<Item = (EJ, EI, EH, EG, EF, EE, ED, EC, EB, EA)>>( iter: Iter, ) -> Self
1.79.0 · Source§impl<K, J, I, H, G, F, E, D, C, B, A, EK, EJ, EI, EH, EG, EF, EE, ED, EC, EB, EA> FromIterator<(EK, EJ, EI, EH, EG, EF, EE, ED, EC, EB, EA)> for (K, J, I, H, G, F, E, D, C, B, A)
impl<K, J, I, H, G, F, E, D, C, B, A, EK, EJ, EI, EH, EG, EF, EE, ED, EC, EB, EA> FromIterator<(EK, EJ, EI, EH, EG, EF, EE, ED, EC, EB, EA)> for (K, J, I, H, G, F, E, D, C, B, A)
This is similar to Iterator::unzip
, but is also composable with other FromIterator
implementations:
let string = "1,2,123,4";
// Example given for a 2-tuple, but 1- through 12-tuples are supported
let (numbers, lengths): (Vec<_>, Vec<_>) = string
.split(',')
.map(|s| s.parse().map(|n: u32| (n, s.len())))
.collect::<Result<_, _>>()?;
assert_eq!(numbers, [1, 2, 123, 4]);
assert_eq!(lengths, [1, 1, 3, 1]);
Source§fn from_iter<Iter: IntoIterator<Item = (EK, EJ, EI, EH, EG, EF, EE, ED, EC, EB, EA)>>(
iter: Iter,
) -> Self
fn from_iter<Iter: IntoIterator<Item = (EK, EJ, EI, EH, EG, EF, EE, ED, EC, EB, EA)>>( iter: Iter, ) -> Self
1.79.0 · Source§impl<L, K, J, I, H, G, F, E, D, C, B, A, EL, EK, EJ, EI, EH, EG, EF, EE, ED, EC, EB, EA> FromIterator<(EL, EK, EJ, EI, EH, EG, EF, EE, ED, EC, EB, EA)> for (L, K, J, I, H, G, F, E, D, C, B, A)where
L: Default + Extend<EL>,
K: Default + Extend<EK>,
J: Default + Extend<EJ>,
I: Default + Extend<EI>,
H: Default + Extend<EH>,
G: Default + Extend<EG>,
F: Default + Extend<EF>,
E: Default + Extend<EE>,
D: Default + Extend<ED>,
C: Default + Extend<EC>,
B: Default + Extend<EB>,
A: Default + Extend<EA>,
impl<L, K, J, I, H, G, F, E, D, C, B, A, EL, EK, EJ, EI, EH, EG, EF, EE, ED, EC, EB, EA> FromIterator<(EL, EK, EJ, EI, EH, EG, EF, EE, ED, EC, EB, EA)> for (L, K, J, I, H, G, F, E, D, C, B, A)where
L: Default + Extend<EL>,
K: Default + Extend<EK>,
J: Default + Extend<EJ>,
I: Default + Extend<EI>,
H: Default + Extend<EH>,
G: Default + Extend<EG>,
F: Default + Extend<EF>,
E: Default + Extend<EE>,
D: Default + Extend<ED>,
C: Default + Extend<EC>,
B: Default + Extend<EB>,
A: Default + Extend<EA>,
This is similar to Iterator::unzip
, but is also composable with other FromIterator
implementations:
let string = "1,2,123,4";
// Example given for a 2-tuple, but 1- through 12-tuples are supported
let (numbers, lengths): (Vec<_>, Vec<_>) = string
.split(',')
.map(|s| s.parse().map(|n: u32| (n, s.len())))
.collect::<Result<_, _>>()?;
assert_eq!(numbers, [1, 2, 123, 4]);
assert_eq!(lengths, [1, 1, 3, 1]);
Source§fn from_iter<Iter: IntoIterator<Item = (EL, EK, EJ, EI, EH, EG, EF, EE, ED, EC, EB, EA)>>(
iter: Iter,
) -> Self
fn from_iter<Iter: IntoIterator<Item = (EL, EK, EJ, EI, EH, EG, EF, EE, ED, EC, EB, EA)>>( iter: Iter, ) -> Self
1.0.0 · Source§impl<T> Hash for (T₁, T₂, …, Tₙ)
This trait is implemented for tuples up to twelve items long.
impl<T> Hash for (T₁, T₂, …, Tₙ)
This trait is implemented for tuples up to twelve items long.
1.0.0 · Source§impl<T: Hash, B: Hash, C: Hash, D: Hash, E: Hash, F: Hash, G> Hash for (T, B, C, D, E, F, G)
impl<T: Hash, B: Hash, C: Hash, D: Hash, E: Hash, F: Hash, G> Hash for (T, B, C, D, E, F, G)
1.0.0 · Source§impl<T: Hash, B: Hash, C: Hash, D: Hash, E: Hash, F: Hash, G: Hash, H> Hash for (T, B, C, D, E, F, G, H)
impl<T: Hash, B: Hash, C: Hash, D: Hash, E: Hash, F: Hash, G: Hash, H> Hash for (T, B, C, D, E, F, G, H)
1.0.0 · Source§impl<T: Hash, B: Hash, C: Hash, D: Hash, E: Hash, F: Hash, G: Hash, H: Hash, I> Hash for (T, B, C, D, E, F, G, H, I)
impl<T: Hash, B: Hash, C: Hash, D: Hash, E: Hash, F: Hash, G: Hash, H: Hash, I> Hash for (T, B, C, D, E, F, G, H, I)
1.0.0 · Source§impl<T: Hash, B: Hash, C: Hash, D: Hash, E: Hash, F: Hash, G: Hash, H: Hash, I: Hash, J> Hash for (T, B, C, D, E, F, G, H, I, J)
impl<T: Hash, B: Hash, C: Hash, D: Hash, E: Hash, F: Hash, G: Hash, H: Hash, I: Hash, J> Hash for (T, B, C, D, E, F, G, H, I, J)
1.0.0 · Source§impl<T: Hash, B: Hash, C: Hash, D: Hash, E: Hash, F: Hash, G: Hash, H: Hash, I: Hash, J: Hash, K> Hash for (T, B, C, D, E, F, G, H, I, J, K)
impl<T: Hash, B: Hash, C: Hash, D: Hash, E: Hash, F: Hash, G: Hash, H: Hash, I: Hash, J: Hash, K> Hash for (T, B, C, D, E, F, G, H, I, J, K)
1.0.0 · Source§impl<T: Hash, B: Hash, C: Hash, D: Hash, E: Hash, F: Hash, G: Hash, H: Hash, I: Hash, J: Hash, K: Hash, L> Hash for (T, B, C, D, E, F, G, H, I, J, K, L)
impl<T: Hash, B: Hash, C: Hash, D: Hash, E: Hash, F: Hash, G: Hash, H: Hash, I: Hash, J: Hash, K: Hash, L> Hash for (T, B, C, D, E, F, G, H, I, J, K, L)
Source§impl<T> IntoBounds<T> for (Bound<T>, Bound<T>)
impl<T> IntoBounds<T> for (Bound<T>, Bound<T>)
1.0.0 · Source§impl<A: Ord, Z: Ord, Y: Ord, X: Ord, W: Ord, V: Ord, U: Ord, T> Ord for (A, Z, Y, X, W, V, U, T)
impl<A: Ord, Z: Ord, Y: Ord, X: Ord, W: Ord, V: Ord, U: Ord, T> Ord for (A, Z, Y, X, W, V, U, T)
Source§fn cmp(&self, other: &(A, Z, Y, X, W, V, U, T)) -> Ordering
fn cmp(&self, other: &(A, Z, Y, X, W, V, U, T)) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
1.0.0 · Source§impl<B: Ord, A: Ord, Z: Ord, Y: Ord, X: Ord, W: Ord, V: Ord, U: Ord, T> Ord for (B, A, Z, Y, X, W, V, U, T)
impl<B: Ord, A: Ord, Z: Ord, Y: Ord, X: Ord, W: Ord, V: Ord, U: Ord, T> Ord for (B, A, Z, Y, X, W, V, U, T)
Source§fn cmp(&self, other: &(B, A, Z, Y, X, W, V, U, T)) -> Ordering
fn cmp(&self, other: &(B, A, Z, Y, X, W, V, U, T)) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
1.0.0 · Source§impl<C: Ord, B: Ord, A: Ord, Z: Ord, Y: Ord, X: Ord, W: Ord, V: Ord, U: Ord, T> Ord for (C, B, A, Z, Y, X, W, V, U, T)
impl<C: Ord, B: Ord, A: Ord, Z: Ord, Y: Ord, X: Ord, W: Ord, V: Ord, U: Ord, T> Ord for (C, B, A, Z, Y, X, W, V, U, T)
Source§fn cmp(&self, other: &(C, B, A, Z, Y, X, W, V, U, T)) -> Ordering
fn cmp(&self, other: &(C, B, A, Z, Y, X, W, V, U, T)) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
1.0.0 · Source§impl<D: Ord, C: Ord, B: Ord, A: Ord, Z: Ord, Y: Ord, X: Ord, W: Ord, V: Ord, U: Ord, T> Ord for (D, C, B, A, Z, Y, X, W, V, U, T)
impl<D: Ord, C: Ord, B: Ord, A: Ord, Z: Ord, Y: Ord, X: Ord, W: Ord, V: Ord, U: Ord, T> Ord for (D, C, B, A, Z, Y, X, W, V, U, T)
Source§fn cmp(&self, other: &(D, C, B, A, Z, Y, X, W, V, U, T)) -> Ordering
fn cmp(&self, other: &(D, C, B, A, Z, Y, X, W, V, U, T)) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
1.0.0 · Source§impl<E: Ord, D: Ord, C: Ord, B: Ord, A: Ord, Z: Ord, Y: Ord, X: Ord, W: Ord, V: Ord, U: Ord, T> Ord for (E, D, C, B, A, Z, Y, X, W, V, U, T)
impl<E: Ord, D: Ord, C: Ord, B: Ord, A: Ord, Z: Ord, Y: Ord, X: Ord, W: Ord, V: Ord, U: Ord, T> Ord for (E, D, C, B, A, Z, Y, X, W, V, U, T)
Source§fn cmp(&self, other: &(E, D, C, B, A, Z, Y, X, W, V, U, T)) -> Ordering
fn cmp(&self, other: &(E, D, C, B, A, Z, Y, X, W, V, U, T)) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
1.0.0 · Source§impl<T> Ord for (T₁, T₂, …, Tₙ)
This trait is implemented for tuples up to twelve items long.
impl<T> Ord for (T₁, T₂, …, Tₙ)
This trait is implemented for tuples up to twelve items long.
1.0.0 · Source§impl<U: Ord, T> Ord for (U, T)
impl<U: Ord, T> Ord for (U, T)
1.0.0 · Source§impl<V: Ord, U: Ord, T> Ord for (V, U, T)
impl<V: Ord, U: Ord, T> Ord for (V, U, T)
1.0.0 · Source§impl<W: Ord, V: Ord, U: Ord, T> Ord for (W, V, U, T)
impl<W: Ord, V: Ord, U: Ord, T> Ord for (W, V, U, T)
Source§fn cmp(&self, other: &(W, V, U, T)) -> Ordering
fn cmp(&self, other: &(W, V, U, T)) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
1.0.0 · Source§impl<X: Ord, W: Ord, V: Ord, U: Ord, T> Ord for (X, W, V, U, T)
impl<X: Ord, W: Ord, V: Ord, U: Ord, T> Ord for (X, W, V, U, T)
Source§fn cmp(&self, other: &(X, W, V, U, T)) -> Ordering
fn cmp(&self, other: &(X, W, V, U, T)) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
1.0.0 · Source§impl<Y: Ord, X: Ord, W: Ord, V: Ord, U: Ord, T> Ord for (Y, X, W, V, U, T)
impl<Y: Ord, X: Ord, W: Ord, V: Ord, U: Ord, T> Ord for (Y, X, W, V, U, T)
Source§fn cmp(&self, other: &(Y, X, W, V, U, T)) -> Ordering
fn cmp(&self, other: &(Y, X, W, V, U, T)) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
1.0.0 · Source§impl<Z: Ord, Y: Ord, X: Ord, W: Ord, V: Ord, U: Ord, T> Ord for (Z, Y, X, W, V, U, T)
impl<Z: Ord, Y: Ord, X: Ord, W: Ord, V: Ord, U: Ord, T> Ord for (Z, Y, X, W, V, U, T)
Source§fn cmp(&self, other: &(Z, Y, X, W, V, U, T)) -> Ordering
fn cmp(&self, other: &(Z, Y, X, W, V, U, T)) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
1.0.0 · Source§impl<A: PartialEq, Z: PartialEq, Y: PartialEq, X: PartialEq, W: PartialEq, V: PartialEq, U: PartialEq, T> PartialEq for (A, Z, Y, X, W, V, U, T)
impl<A: PartialEq, Z: PartialEq, Y: PartialEq, X: PartialEq, W: PartialEq, V: PartialEq, U: PartialEq, T> PartialEq for (A, Z, Y, X, W, V, U, T)
Source§fn eq(&self, other: &(A, Z, Y, X, W, V, U, T)) -> bool
fn eq(&self, other: &(A, Z, Y, X, W, V, U, T)) -> bool
self
and other
values to be equal, and is used by ==
.Source§fn ne(&self, other: &(A, Z, Y, X, W, V, U, T)) -> bool
fn ne(&self, other: &(A, Z, Y, X, W, V, U, T)) -> bool
!=
. The default implementation is almost always sufficient,
and should not be overridden without very good reason.1.0.0 · Source§impl<B: PartialEq, A: PartialEq, Z: PartialEq, Y: PartialEq, X: PartialEq, W: PartialEq, V: PartialEq, U: PartialEq, T> PartialEq for (B, A, Z, Y, X, W, V, U, T)
impl<B: PartialEq, A: PartialEq, Z: PartialEq, Y: PartialEq, X: PartialEq, W: PartialEq, V: PartialEq, U: PartialEq, T> PartialEq for (B, A, Z, Y, X, W, V, U, T)
Source§fn eq(&self, other: &(B, A, Z, Y, X, W, V, U, T)) -> bool
fn eq(&self, other: &(B, A, Z, Y, X, W, V, U, T)) -> bool
self
and other
values to be equal, and is used by ==
.Source§fn ne(&self, other: &(B, A, Z, Y, X, W, V, U, T)) -> bool
fn ne(&self, other: &(B, A, Z, Y, X, W, V, U, T)) -> bool
!=
. The default implementation is almost always sufficient,
and should not be overridden without very good reason.1.0.0 · Source§impl<C: PartialEq, B: PartialEq, A: PartialEq, Z: PartialEq, Y: PartialEq, X: PartialEq, W: PartialEq, V: PartialEq, U: PartialEq, T> PartialEq for (C, B, A, Z, Y, X, W, V, U, T)
impl<C: PartialEq, B: PartialEq, A: PartialEq, Z: PartialEq, Y: PartialEq, X: PartialEq, W: PartialEq, V: PartialEq, U: PartialEq, T> PartialEq for (C, B, A, Z, Y, X, W, V, U, T)
Source§fn eq(&self, other: &(C, B, A, Z, Y, X, W, V, U, T)) -> bool
fn eq(&self, other: &(C, B, A, Z, Y, X, W, V, U, T)) -> bool
self
and other
values to be equal, and is used by ==
.Source§fn ne(&self, other: &(C, B, A, Z, Y, X, W, V, U, T)) -> bool
fn ne(&self, other: &(C, B, A, Z, Y, X, W, V, U, T)) -> bool
!=
. The default implementation is almost always sufficient,
and should not be overridden without very good reason.1.0.0 · Source§impl<D: PartialEq, C: PartialEq, B: PartialEq, A: PartialEq, Z: PartialEq, Y: PartialEq, X: PartialEq, W: PartialEq, V: PartialEq, U: PartialEq, T> PartialEq for (D, C, B, A, Z, Y, X, W, V, U, T)
impl<D: PartialEq, C: PartialEq, B: PartialEq, A: PartialEq, Z: PartialEq, Y: PartialEq, X: PartialEq, W: PartialEq, V: PartialEq, U: PartialEq, T> PartialEq for (D, C, B, A, Z, Y, X, W, V, U, T)
Source§fn eq(&self, other: &(D, C, B, A, Z, Y, X, W, V, U, T)) -> bool
fn eq(&self, other: &(D, C, B, A, Z, Y, X, W, V, U, T)) -> bool
self
and other
values to be equal, and is used by ==
.Source§fn ne(&self, other: &(D, C, B, A, Z, Y, X, W, V, U, T)) -> bool
fn ne(&self, other: &(D, C, B, A, Z, Y, X, W, V, U, T)) -> bool
!=
. The default implementation is almost always sufficient,
and should not be overridden without very good reason.1.0.0 · Source§impl<E: PartialEq, D: PartialEq, C: PartialEq, B: PartialEq, A: PartialEq, Z: PartialEq, Y: PartialEq, X: PartialEq, W: PartialEq, V: PartialEq, U: PartialEq, T> PartialEq for (E, D, C, B, A, Z, Y, X, W, V, U, T)
impl<E: PartialEq, D: PartialEq, C: PartialEq, B: PartialEq, A: PartialEq, Z: PartialEq, Y: PartialEq, X: PartialEq, W: PartialEq, V: PartialEq, U: PartialEq, T> PartialEq for (E, D, C, B, A, Z, Y, X, W, V, U, T)
Source§fn eq(&self, other: &(E, D, C, B, A, Z, Y, X, W, V, U, T)) -> bool
fn eq(&self, other: &(E, D, C, B, A, Z, Y, X, W, V, U, T)) -> bool
self
and other
values to be equal, and is used by ==
.Source§fn ne(&self, other: &(E, D, C, B, A, Z, Y, X, W, V, U, T)) -> bool
fn ne(&self, other: &(E, D, C, B, A, Z, Y, X, W, V, U, T)) -> bool
!=
. The default implementation is almost always sufficient,
and should not be overridden without very good reason.1.0.0 · Source§impl<T> PartialEq for (T₁, T₂, …, Tₙ)
This trait is implemented for tuples up to twelve items long.
impl<T> PartialEq for (T₁, T₂, …, Tₙ)
This trait is implemented for tuples up to twelve items long.
1.0.0 · Source§impl<W: PartialEq, V: PartialEq, U: PartialEq, T> PartialEq for (W, V, U, T)
impl<W: PartialEq, V: PartialEq, U: PartialEq, T> PartialEq for (W, V, U, T)
Source§fn eq(&self, other: &(W, V, U, T)) -> bool
fn eq(&self, other: &(W, V, U, T)) -> bool
self
and other
values to be equal, and is used by ==
.Source§fn ne(&self, other: &(W, V, U, T)) -> bool
fn ne(&self, other: &(W, V, U, T)) -> bool
!=
. The default implementation is almost always sufficient,
and should not be overridden without very good reason.1.0.0 · Source§impl<X: PartialEq, W: PartialEq, V: PartialEq, U: PartialEq, T> PartialEq for (X, W, V, U, T)
impl<X: PartialEq, W: PartialEq, V: PartialEq, U: PartialEq, T> PartialEq for (X, W, V, U, T)
Source§fn eq(&self, other: &(X, W, V, U, T)) -> bool
fn eq(&self, other: &(X, W, V, U, T)) -> bool
self
and other
values to be equal, and is used by ==
.Source§fn ne(&self, other: &(X, W, V, U, T)) -> bool
fn ne(&self, other: &(X, W, V, U, T)) -> bool
!=
. The default implementation is almost always sufficient,
and should not be overridden without very good reason.1.0.0 · Source§impl<Y: PartialEq, X: PartialEq, W: PartialEq, V: PartialEq, U: PartialEq, T> PartialEq for (Y, X, W, V, U, T)
impl<Y: PartialEq, X: PartialEq, W: PartialEq, V: PartialEq, U: PartialEq, T> PartialEq for (Y, X, W, V, U, T)
Source§fn eq(&self, other: &(Y, X, W, V, U, T)) -> bool
fn eq(&self, other: &(Y, X, W, V, U, T)) -> bool
self
and other
values to be equal, and is used by ==
.Source§fn ne(&self, other: &(Y, X, W, V, U, T)) -> bool
fn ne(&self, other: &(Y, X, W, V, U, T)) -> bool
!=
. The default implementation is almost always sufficient,
and should not be overridden without very good reason.1.0.0 · Source§impl<Z: PartialEq, Y: PartialEq, X: PartialEq, W: PartialEq, V: PartialEq, U: PartialEq, T> PartialEq for (Z, Y, X, W, V, U, T)
impl<Z: PartialEq, Y: PartialEq, X: PartialEq, W: PartialEq, V: PartialEq, U: PartialEq, T> PartialEq for (Z, Y, X, W, V, U, T)
Source§fn eq(&self, other: &(Z, Y, X, W, V, U, T)) -> bool
fn eq(&self, other: &(Z, Y, X, W, V, U, T)) -> bool
self
and other
values to be equal, and is used by ==
.Source§fn ne(&self, other: &(Z, Y, X, W, V, U, T)) -> bool
fn ne(&self, other: &(Z, Y, X, W, V, U, T)) -> bool
!=
. The default implementation is almost always sufficient,
and should not be overridden without very good reason.1.0.0 · Source§impl<A: PartialOrd, Z: PartialOrd, Y: PartialOrd, X: PartialOrd, W: PartialOrd, V: PartialOrd, U: PartialOrd, T> PartialOrd for (A, Z, Y, X, W, V, U, T)where
T: ?Sized + PartialOrd,
impl<A: PartialOrd, Z: PartialOrd, Y: PartialOrd, X: PartialOrd, W: PartialOrd, V: PartialOrd, U: PartialOrd, T> PartialOrd for (A, Z, Y, X, W, V, U, T)where
T: ?Sized + PartialOrd,
Source§fn partial_cmp(&self, other: &(A, Z, Y, X, W, V, U, T)) -> Option<Ordering>
fn partial_cmp(&self, other: &(A, Z, Y, X, W, V, U, T)) -> Option<Ordering>
Source§fn lt(&self, other: &(A, Z, Y, X, W, V, U, T)) -> bool
fn lt(&self, other: &(A, Z, Y, X, W, V, U, T)) -> bool
Source§fn le(&self, other: &(A, Z, Y, X, W, V, U, T)) -> bool
fn le(&self, other: &(A, Z, Y, X, W, V, U, T)) -> bool
Source§fn ge(&self, other: &(A, Z, Y, X, W, V, U, T)) -> bool
fn ge(&self, other: &(A, Z, Y, X, W, V, U, T)) -> bool
Source§fn gt(&self, other: &(A, Z, Y, X, W, V, U, T)) -> bool
fn gt(&self, other: &(A, Z, Y, X, W, V, U, T)) -> bool
Source§fn __chaining_lt(&self, other: &(A, Z, Y, X, W, V, U, T)) -> ControlFlow<bool>
fn __chaining_lt(&self, other: &(A, Z, Y, X, W, V, U, T)) -> ControlFlow<bool>
partial_ord_chaining_methods
)self == other
, returns ControlFlow::Continue(())
.
Otherwise, returns ControlFlow::Break(self < other)
. Read moreSource§fn __chaining_le(&self, other: &(A, Z, Y, X, W, V, U, T)) -> ControlFlow<bool>
fn __chaining_le(&self, other: &(A, Z, Y, X, W, V, U, T)) -> ControlFlow<bool>
partial_ord_chaining_methods
)__chaining_lt
, but for <=
instead of <
.Source§fn __chaining_gt(&self, other: &(A, Z, Y, X, W, V, U, T)) -> ControlFlow<bool>
fn __chaining_gt(&self, other: &(A, Z, Y, X, W, V, U, T)) -> ControlFlow<bool>
partial_ord_chaining_methods
)__chaining_lt
, but for >
instead of <
.Source§fn __chaining_ge(&self, other: &(A, Z, Y, X, W, V, U, T)) -> ControlFlow<bool>
fn __chaining_ge(&self, other: &(A, Z, Y, X, W, V, U, T)) -> ControlFlow<bool>
partial_ord_chaining_methods
)__chaining_lt
, but for >=
instead of <
.1.0.0 · Source§impl<B: PartialOrd, A: PartialOrd, Z: PartialOrd, Y: PartialOrd, X: PartialOrd, W: PartialOrd, V: PartialOrd, U: PartialOrd, T> PartialOrd for (B, A, Z, Y, X, W, V, U, T)where
T: ?Sized + PartialOrd,
impl<B: PartialOrd, A: PartialOrd, Z: PartialOrd, Y: PartialOrd, X: PartialOrd, W: PartialOrd, V: PartialOrd, U: PartialOrd, T> PartialOrd for (B, A, Z, Y, X, W, V, U, T)where
T: ?Sized + PartialOrd,
Source§fn partial_cmp(&self, other: &(B, A, Z, Y, X, W, V, U, T)) -> Option<Ordering>
fn partial_cmp(&self, other: &(B, A, Z, Y, X, W, V, U, T)) -> Option<Ordering>
Source§fn lt(&self, other: &(B, A, Z, Y, X, W, V, U, T)) -> bool
fn lt(&self, other: &(B, A, Z, Y, X, W, V, U, T)) -> bool
Source§fn le(&self, other: &(B, A, Z, Y, X, W, V, U, T)) -> bool
fn le(&self, other: &(B, A, Z, Y, X, W, V, U, T)) -> bool
Source§fn ge(&self, other: &(B, A, Z, Y, X, W, V, U, T)) -> bool
fn ge(&self, other: &(B, A, Z, Y, X, W, V, U, T)) -> bool
Source§fn gt(&self, other: &(B, A, Z, Y, X, W, V, U, T)) -> bool
fn gt(&self, other: &(B, A, Z, Y, X, W, V, U, T)) -> bool
Source§fn __chaining_lt(
&self,
other: &(B, A, Z, Y, X, W, V, U, T),
) -> ControlFlow<bool>
fn __chaining_lt( &self, other: &(B, A, Z, Y, X, W, V, U, T), ) -> ControlFlow<bool>
partial_ord_chaining_methods
)self == other
, returns ControlFlow::Continue(())
.
Otherwise, returns ControlFlow::Break(self < other)
. Read moreSource§fn __chaining_le(
&self,
other: &(B, A, Z, Y, X, W, V, U, T),
) -> ControlFlow<bool>
fn __chaining_le( &self, other: &(B, A, Z, Y, X, W, V, U, T), ) -> ControlFlow<bool>
partial_ord_chaining_methods
)__chaining_lt
, but for <=
instead of <
.Source§fn __chaining_gt(
&self,
other: &(B, A, Z, Y, X, W, V, U, T),
) -> ControlFlow<bool>
fn __chaining_gt( &self, other: &(B, A, Z, Y, X, W, V, U, T), ) -> ControlFlow<bool>
partial_ord_chaining_methods
)__chaining_lt
, but for >
instead of <
.Source§fn __chaining_ge(
&self,
other: &(B, A, Z, Y, X, W, V, U, T),
) -> ControlFlow<bool>
fn __chaining_ge( &self, other: &(B, A, Z, Y, X, W, V, U, T), ) -> ControlFlow<bool>
partial_ord_chaining_methods
)__chaining_lt
, but for >=
instead of <
.1.0.0 · Source§impl<C: PartialOrd, B: PartialOrd, A: PartialOrd, Z: PartialOrd, Y: PartialOrd, X: PartialOrd, W: PartialOrd, V: PartialOrd, U: PartialOrd, T> PartialOrd for (C, B, A, Z, Y, X, W, V, U, T)where
T: ?Sized + PartialOrd,
impl<C: PartialOrd, B: PartialOrd, A: PartialOrd, Z: PartialOrd, Y: PartialOrd, X: PartialOrd, W: PartialOrd, V: PartialOrd, U: PartialOrd, T> PartialOrd for (C, B, A, Z, Y, X, W, V, U, T)where
T: ?Sized + PartialOrd,
Source§fn partial_cmp(
&self,
other: &(C, B, A, Z, Y, X, W, V, U, T),
) -> Option<Ordering>
fn partial_cmp( &self, other: &(C, B, A, Z, Y, X, W, V, U, T), ) -> Option<Ordering>
Source§fn lt(&self, other: &(C, B, A, Z, Y, X, W, V, U, T)) -> bool
fn lt(&self, other: &(C, B, A, Z, Y, X, W, V, U, T)) -> bool
Source§fn le(&self, other: &(C, B, A, Z, Y, X, W, V, U, T)) -> bool
fn le(&self, other: &(C, B, A, Z, Y, X, W, V, U, T)) -> bool
Source§fn ge(&self, other: &(C, B, A, Z, Y, X, W, V, U, T)) -> bool
fn ge(&self, other: &(C, B, A, Z, Y, X, W, V, U, T)) -> bool
Source§fn gt(&self, other: &(C, B, A, Z, Y, X, W, V, U, T)) -> bool
fn gt(&self, other: &(C, B, A, Z, Y, X, W, V, U, T)) -> bool
Source§fn __chaining_lt(
&self,
other: &(C, B, A, Z, Y, X, W, V, U, T),
) -> ControlFlow<bool>
fn __chaining_lt( &self, other: &(C, B, A, Z, Y, X, W, V, U, T), ) -> ControlFlow<bool>
partial_ord_chaining_methods
)self == other
, returns ControlFlow::Continue(())
.
Otherwise, returns ControlFlow::Break(self < other)
. Read moreSource§fn __chaining_le(
&self,
other: &(C, B, A, Z, Y, X, W, V, U, T),
) -> ControlFlow<bool>
fn __chaining_le( &self, other: &(C, B, A, Z, Y, X, W, V, U, T), ) -> ControlFlow<bool>
partial_ord_chaining_methods
)__chaining_lt
, but for <=
instead of <
.Source§fn __chaining_gt(
&self,
other: &(C, B, A, Z, Y, X, W, V, U, T),
) -> ControlFlow<bool>
fn __chaining_gt( &self, other: &(C, B, A, Z, Y, X, W, V, U, T), ) -> ControlFlow<bool>
partial_ord_chaining_methods
)__chaining_lt
, but for >
instead of <
.Source§fn __chaining_ge(
&self,
other: &(C, B, A, Z, Y, X, W, V, U, T),
) -> ControlFlow<bool>
fn __chaining_ge( &self, other: &(C, B, A, Z, Y, X, W, V, U, T), ) -> ControlFlow<bool>
partial_ord_chaining_methods
)__chaining_lt
, but for >=
instead of <
.1.0.0 · Source§impl<D: PartialOrd, C: PartialOrd, B: PartialOrd, A: PartialOrd, Z: PartialOrd, Y: PartialOrd, X: PartialOrd, W: PartialOrd, V: PartialOrd, U: PartialOrd, T> PartialOrd for (D, C, B, A, Z, Y, X, W, V, U, T)where
T: ?Sized + PartialOrd,
impl<D: PartialOrd, C: PartialOrd, B: PartialOrd, A: PartialOrd, Z: PartialOrd, Y: PartialOrd, X: PartialOrd, W: PartialOrd, V: PartialOrd, U: PartialOrd, T> PartialOrd for (D, C, B, A, Z, Y, X, W, V, U, T)where
T: ?Sized + PartialOrd,
Source§fn partial_cmp(
&self,
other: &(D, C, B, A, Z, Y, X, W, V, U, T),
) -> Option<Ordering>
fn partial_cmp( &self, other: &(D, C, B, A, Z, Y, X, W, V, U, T), ) -> Option<Ordering>
Source§fn lt(&self, other: &(D, C, B, A, Z, Y, X, W, V, U, T)) -> bool
fn lt(&self, other: &(D, C, B, A, Z, Y, X, W, V, U, T)) -> bool
Source§fn le(&self, other: &(D, C, B, A, Z, Y, X, W, V, U, T)) -> bool
fn le(&self, other: &(D, C, B, A, Z, Y, X, W, V, U, T)) -> bool
Source§fn ge(&self, other: &(D, C, B, A, Z, Y, X, W, V, U, T)) -> bool
fn ge(&self, other: &(D, C, B, A, Z, Y, X, W, V, U, T)) -> bool
Source§fn gt(&self, other: &(D, C, B, A, Z, Y, X, W, V, U, T)) -> bool
fn gt(&self, other: &(D, C, B, A, Z, Y, X, W, V, U, T)) -> bool
Source§fn __chaining_lt(
&self,
other: &(D, C, B, A, Z, Y, X, W, V, U, T),
) -> ControlFlow<bool>
fn __chaining_lt( &self, other: &(D, C, B, A, Z, Y, X, W, V, U, T), ) -> ControlFlow<bool>
partial_ord_chaining_methods
)self == other
, returns ControlFlow::Continue(())
.
Otherwise, returns ControlFlow::Break(self < other)
. Read moreSource§fn __chaining_le(
&self,
other: &(D, C, B, A, Z, Y, X, W, V, U, T),
) -> ControlFlow<bool>
fn __chaining_le( &self, other: &(D, C, B, A, Z, Y, X, W, V, U, T), ) -> ControlFlow<bool>
partial_ord_chaining_methods
)__chaining_lt
, but for <=
instead of <
.Source§fn __chaining_gt(
&self,
other: &(D, C, B, A, Z, Y, X, W, V, U, T),
) -> ControlFlow<bool>
fn __chaining_gt( &self, other: &(D, C, B, A, Z, Y, X, W, V, U, T), ) -> ControlFlow<bool>
partial_ord_chaining_methods
)__chaining_lt
, but for >
instead of <
.Source§fn __chaining_ge(
&self,
other: &(D, C, B, A, Z, Y, X, W, V, U, T),
) -> ControlFlow<bool>
fn __chaining_ge( &self, other: &(D, C, B, A, Z, Y, X, W, V, U, T), ) -> ControlFlow<bool>
partial_ord_chaining_methods
)__chaining_lt
, but for >=
instead of <
.1.0.0 · Source§impl<E: PartialOrd, D: PartialOrd, C: PartialOrd, B: PartialOrd, A: PartialOrd, Z: PartialOrd, Y: PartialOrd, X: PartialOrd, W: PartialOrd, V: PartialOrd, U: PartialOrd, T> PartialOrd for (E, D, C, B, A, Z, Y, X, W, V, U, T)where
T: ?Sized + PartialOrd,
impl<E: PartialOrd, D: PartialOrd, C: PartialOrd, B: PartialOrd, A: PartialOrd, Z: PartialOrd, Y: PartialOrd, X: PartialOrd, W: PartialOrd, V: PartialOrd, U: PartialOrd, T> PartialOrd for (E, D, C, B, A, Z, Y, X, W, V, U, T)where
T: ?Sized + PartialOrd,
Source§fn partial_cmp(
&self,
other: &(E, D, C, B, A, Z, Y, X, W, V, U, T),
) -> Option<Ordering>
fn partial_cmp( &self, other: &(E, D, C, B, A, Z, Y, X, W, V, U, T), ) -> Option<Ordering>
Source§fn lt(&self, other: &(E, D, C, B, A, Z, Y, X, W, V, U, T)) -> bool
fn lt(&self, other: &(E, D, C, B, A, Z, Y, X, W, V, U, T)) -> bool
Source§fn le(&self, other: &(E, D, C, B, A, Z, Y, X, W, V, U, T)) -> bool
fn le(&self, other: &(E, D, C, B, A, Z, Y, X, W, V, U, T)) -> bool
Source§fn ge(&self, other: &(E, D, C, B, A, Z, Y, X, W, V, U, T)) -> bool
fn ge(&self, other: &(E, D, C, B, A, Z, Y, X, W, V, U, T)) -> bool
Source§fn gt(&self, other: &(E, D, C, B, A, Z, Y, X, W, V, U, T)) -> bool
fn gt(&self, other: &(E, D, C, B, A, Z, Y, X, W, V, U, T)) -> bool
Source§fn __chaining_lt(
&self,
other: &(E, D, C, B, A, Z, Y, X, W, V, U, T),
) -> ControlFlow<bool>
fn __chaining_lt( &self, other: &(E, D, C, B, A, Z, Y, X, W, V, U, T), ) -> ControlFlow<bool>
partial_ord_chaining_methods
)self == other
, returns ControlFlow::Continue(())
.
Otherwise, returns ControlFlow::Break(self < other)
. Read moreSource§fn __chaining_le(
&self,
other: &(E, D, C, B, A, Z, Y, X, W, V, U, T),
) -> ControlFlow<bool>
fn __chaining_le( &self, other: &(E, D, C, B, A, Z, Y, X, W, V, U, T), ) -> ControlFlow<bool>
partial_ord_chaining_methods
)__chaining_lt
, but for <=
instead of <
.Source§fn __chaining_gt(
&self,
other: &(E, D, C, B, A, Z, Y, X, W, V, U, T),
) -> ControlFlow<bool>
fn __chaining_gt( &self, other: &(E, D, C, B, A, Z, Y, X, W, V, U, T), ) -> ControlFlow<bool>
partial_ord_chaining_methods
)__chaining_lt
, but for >
instead of <
.Source§fn __chaining_ge(
&self,
other: &(E, D, C, B, A, Z, Y, X, W, V, U, T),
) -> ControlFlow<bool>
fn __chaining_ge( &self, other: &(E, D, C, B, A, Z, Y, X, W, V, U, T), ) -> ControlFlow<bool>
partial_ord_chaining_methods
)__chaining_lt
, but for >=
instead of <
.1.0.0 · Source§impl<T> PartialOrd for (T₁, T₂, …, Tₙ)where
T: ?Sized + PartialOrd,
This trait is implemented for tuples up to twelve items long.
impl<T> PartialOrd for (T₁, T₂, …, Tₙ)where
T: ?Sized + PartialOrd,
This trait is implemented for tuples up to twelve items long.
Source§fn __chaining_lt(&self, other: &(T,)) -> ControlFlow<bool>
fn __chaining_lt(&self, other: &(T,)) -> ControlFlow<bool>
partial_ord_chaining_methods
)self == other
, returns ControlFlow::Continue(())
.
Otherwise, returns ControlFlow::Break(self < other)
. Read moreSource§fn __chaining_le(&self, other: &(T,)) -> ControlFlow<bool>
fn __chaining_le(&self, other: &(T,)) -> ControlFlow<bool>
partial_ord_chaining_methods
)__chaining_lt
, but for <=
instead of <
.Source§fn __chaining_gt(&self, other: &(T,)) -> ControlFlow<bool>
fn __chaining_gt(&self, other: &(T,)) -> ControlFlow<bool>
partial_ord_chaining_methods
)__chaining_lt
, but for >
instead of <
.Source§fn __chaining_ge(&self, other: &(T,)) -> ControlFlow<bool>
fn __chaining_ge(&self, other: &(T,)) -> ControlFlow<bool>
partial_ord_chaining_methods
)__chaining_lt
, but for >=
instead of <
.1.0.0 · Source§impl<U: PartialOrd, T> PartialOrd for (U, T)where
T: ?Sized + PartialOrd,
impl<U: PartialOrd, T> PartialOrd for (U, T)where
T: ?Sized + PartialOrd,
Source§fn __chaining_lt(&self, other: &(U, T)) -> ControlFlow<bool>
fn __chaining_lt(&self, other: &(U, T)) -> ControlFlow<bool>
partial_ord_chaining_methods
)self == other
, returns ControlFlow::Continue(())
.
Otherwise, returns ControlFlow::Break(self < other)
. Read moreSource§fn __chaining_le(&self, other: &(U, T)) -> ControlFlow<bool>
fn __chaining_le(&self, other: &(U, T)) -> ControlFlow<bool>
partial_ord_chaining_methods
)__chaining_lt
, but for <=
instead of <
.Source§fn __chaining_gt(&self, other: &(U, T)) -> ControlFlow<bool>
fn __chaining_gt(&self, other: &(U, T)) -> ControlFlow<bool>
partial_ord_chaining_methods
)__chaining_lt
, but for >
instead of <
.Source§fn __chaining_ge(&self, other: &(U, T)) -> ControlFlow<bool>
fn __chaining_ge(&self, other: &(U, T)) -> ControlFlow<bool>
partial_ord_chaining_methods
)__chaining_lt
, but for >=
instead of <
.1.0.0 · Source§impl<V: PartialOrd, U: PartialOrd, T> PartialOrd for (V, U, T)where
T: ?Sized + PartialOrd,
impl<V: PartialOrd, U: PartialOrd, T> PartialOrd for (V, U, T)where
T: ?Sized + PartialOrd,
Source§fn __chaining_lt(&self, other: &(V, U, T)) -> ControlFlow<bool>
fn __chaining_lt(&self, other: &(V, U, T)) -> ControlFlow<bool>
partial_ord_chaining_methods
)self == other
, returns ControlFlow::Continue(())
.
Otherwise, returns ControlFlow::Break(self < other)
. Read moreSource§fn __chaining_le(&self, other: &(V, U, T)) -> ControlFlow<bool>
fn __chaining_le(&self, other: &(V, U, T)) -> ControlFlow<bool>
partial_ord_chaining_methods
)__chaining_lt
, but for <=
instead of <
.Source§fn __chaining_gt(&self, other: &(V, U, T)) -> ControlFlow<bool>
fn __chaining_gt(&self, other: &(V, U, T)) -> ControlFlow<bool>
partial_ord_chaining_methods
)__chaining_lt
, but for >
instead of <
.Source§fn __chaining_ge(&self, other: &(V, U, T)) -> ControlFlow<bool>
fn __chaining_ge(&self, other: &(V, U, T)) -> ControlFlow<bool>
partial_ord_chaining_methods
)__chaining_lt
, but for >=
instead of <
.1.0.0 · Source§impl<W: PartialOrd, V: PartialOrd, U: PartialOrd, T> PartialOrd for (W, V, U, T)where
T: ?Sized + PartialOrd,
impl<W: PartialOrd, V: PartialOrd, U: PartialOrd, T> PartialOrd for (W, V, U, T)where
T: ?Sized + PartialOrd,
Source§fn partial_cmp(&self, other: &(W, V, U, T)) -> Option<Ordering>
fn partial_cmp(&self, other: &(W, V, U, T)) -> Option<Ordering>
Source§fn lt(&self, other: &(W, V, U, T)) -> bool
fn lt(&self, other: &(W, V, U, T)) -> bool
Source§fn le(&self, other: &(W, V, U, T)) -> bool
fn le(&self, other: &(W, V, U, T)) -> bool
Source§fn ge(&self, other: &(W, V, U, T)) -> bool
fn ge(&self, other: &(W, V, U, T)) -> bool
Source§fn gt(&self, other: &(W, V, U, T)) -> bool
fn gt(&self, other: &(W, V, U, T)) -> bool
Source§fn __chaining_lt(&self, other: &(W, V, U, T)) -> ControlFlow<bool>
fn __chaining_lt(&self, other: &(W, V, U, T)) -> ControlFlow<bool>
partial_ord_chaining_methods
)self == other
, returns ControlFlow::Continue(())
.
Otherwise, returns ControlFlow::Break(self < other)
. Read moreSource§fn __chaining_le(&self, other: &(W, V, U, T)) -> ControlFlow<bool>
fn __chaining_le(&self, other: &(W, V, U, T)) -> ControlFlow<bool>
partial_ord_chaining_methods
)__chaining_lt
, but for <=
instead of <
.Source§fn __chaining_gt(&self, other: &(W, V, U, T)) -> ControlFlow<bool>
fn __chaining_gt(&self, other: &(W, V, U, T)) -> ControlFlow<bool>
partial_ord_chaining_methods
)__chaining_lt
, but for >
instead of <
.Source§fn __chaining_ge(&self, other: &(W, V, U, T)) -> ControlFlow<bool>
fn __chaining_ge(&self, other: &(W, V, U, T)) -> ControlFlow<bool>
partial_ord_chaining_methods
)__chaining_lt
, but for >=
instead of <
.1.0.0 · Source§impl<X: PartialOrd, W: PartialOrd, V: PartialOrd, U: PartialOrd, T> PartialOrd for (X, W, V, U, T)where
T: ?Sized + PartialOrd,
impl<X: PartialOrd, W: PartialOrd, V: PartialOrd, U: PartialOrd, T> PartialOrd for (X, W, V, U, T)where
T: ?Sized + PartialOrd,
Source§fn partial_cmp(&self, other: &(X, W, V, U, T)) -> Option<Ordering>
fn partial_cmp(&self, other: &(X, W, V, U, T)) -> Option<Ordering>
Source§fn lt(&self, other: &(X, W, V, U, T)) -> bool
fn lt(&self, other: &(X, W, V, U, T)) -> bool
Source§fn le(&self, other: &(X, W, V, U, T)) -> bool
fn le(&self, other: &(X, W, V, U, T)) -> bool
Source§fn ge(&self, other: &(X, W, V, U, T)) -> bool
fn ge(&self, other: &(X, W, V, U, T)) -> bool
Source§fn gt(&self, other: &(X, W, V, U, T)) -> bool
fn gt(&self, other: &(X, W, V, U, T)) -> bool
Source§fn __chaining_lt(&self, other: &(X, W, V, U, T)) -> ControlFlow<bool>
fn __chaining_lt(&self, other: &(X, W, V, U, T)) -> ControlFlow<bool>
partial_ord_chaining_methods
)self == other
, returns ControlFlow::Continue(())
.
Otherwise, returns ControlFlow::Break(self < other)
. Read moreSource§fn __chaining_le(&self, other: &(X, W, V, U, T)) -> ControlFlow<bool>
fn __chaining_le(&self, other: &(X, W, V, U, T)) -> ControlFlow<bool>
partial_ord_chaining_methods
)__chaining_lt
, but for <=
instead of <
.Source§fn __chaining_gt(&self, other: &(X, W, V, U, T)) -> ControlFlow<bool>
fn __chaining_gt(&self, other: &(X, W, V, U, T)) -> ControlFlow<bool>
partial_ord_chaining_methods
)__chaining_lt
, but for >
instead of <
.Source§fn __chaining_ge(&self, other: &(X, W, V, U, T)) -> ControlFlow<bool>
fn __chaining_ge(&self, other: &(X, W, V, U, T)) -> ControlFlow<bool>
partial_ord_chaining_methods
)__chaining_lt
, but for >=
instead of <
.1.0.0 · Source§impl<Y: PartialOrd, X: PartialOrd, W: PartialOrd, V: PartialOrd, U: PartialOrd, T> PartialOrd for (Y, X, W, V, U, T)where
T: ?Sized + PartialOrd,
impl<Y: PartialOrd, X: PartialOrd, W: PartialOrd, V: PartialOrd, U: PartialOrd, T> PartialOrd for (Y, X, W, V, U, T)where
T: ?Sized + PartialOrd,
Source§fn partial_cmp(&self, other: &(Y, X, W, V, U, T)) -> Option<Ordering>
fn partial_cmp(&self, other: &(Y, X, W, V, U, T)) -> Option<Ordering>
Source§fn lt(&self, other: &(Y, X, W, V, U, T)) -> bool
fn lt(&self, other: &(Y, X, W, V, U, T)) -> bool
Source§fn le(&self, other: &(Y, X, W, V, U, T)) -> bool
fn le(&self, other: &(Y, X, W, V, U, T)) -> bool
Source§fn ge(&self, other: &(Y, X, W, V, U, T)) -> bool
fn ge(&self, other: &(Y, X, W, V, U, T)) -> bool
Source§fn gt(&self, other: &(Y, X, W, V, U, T)) -> bool
fn gt(&self, other: &(Y, X, W, V, U, T)) -> bool
Source§fn __chaining_lt(&self, other: &(Y, X, W, V, U, T)) -> ControlFlow<bool>
fn __chaining_lt(&self, other: &(Y, X, W, V, U, T)) -> ControlFlow<bool>
partial_ord_chaining_methods
)self == other
, returns ControlFlow::Continue(())
.
Otherwise, returns ControlFlow::Break(self < other)
. Read moreSource§fn __chaining_le(&self, other: &(Y, X, W, V, U, T)) -> ControlFlow<bool>
fn __chaining_le(&self, other: &(Y, X, W, V, U, T)) -> ControlFlow<bool>
partial_ord_chaining_methods
)__chaining_lt
, but for <=
instead of <
.Source§fn __chaining_gt(&self, other: &(Y, X, W, V, U, T)) -> ControlFlow<bool>
fn __chaining_gt(&self, other: &(Y, X, W, V, U, T)) -> ControlFlow<bool>
partial_ord_chaining_methods
)__chaining_lt
, but for >
instead of <
.Source§fn __chaining_ge(&self, other: &(Y, X, W, V, U, T)) -> ControlFlow<bool>
fn __chaining_ge(&self, other: &(Y, X, W, V, U, T)) -> ControlFlow<bool>
partial_ord_chaining_methods
)__chaining_lt
, but for >=
instead of <
.1.0.0 · Source§impl<Z: PartialOrd, Y: PartialOrd, X: PartialOrd, W: PartialOrd, V: PartialOrd, U: PartialOrd, T> PartialOrd for (Z, Y, X, W, V, U, T)where
T: ?Sized + PartialOrd,
impl<Z: PartialOrd, Y: PartialOrd, X: PartialOrd, W: PartialOrd, V: PartialOrd, U: PartialOrd, T> PartialOrd for (Z, Y, X, W, V, U, T)where
T: ?Sized + PartialOrd,
Source§fn partial_cmp(&self, other: &(Z, Y, X, W, V, U, T)) -> Option<Ordering>
fn partial_cmp(&self, other: &(Z, Y, X, W, V, U, T)) -> Option<Ordering>
Source§fn lt(&self, other: &(Z, Y, X, W, V, U, T)) -> bool
fn lt(&self, other: &(Z, Y, X, W, V, U, T)) -> bool
Source§fn le(&self, other: &(Z, Y, X, W, V, U, T)) -> bool
fn le(&self, other: &(Z, Y, X, W, V, U, T)) -> bool
Source§fn ge(&self, other: &(Z, Y, X, W, V, U, T)) -> bool
fn ge(&self, other: &(Z, Y, X, W, V, U, T)) -> bool
Source§fn gt(&self, other: &(Z, Y, X, W, V, U, T)) -> bool
fn gt(&self, other: &(Z, Y, X, W, V, U, T)) -> bool
Source§fn __chaining_lt(&self, other: &(Z, Y, X, W, V, U, T)) -> ControlFlow<bool>
fn __chaining_lt(&self, other: &(Z, Y, X, W, V, U, T)) -> ControlFlow<bool>
partial_ord_chaining_methods
)self == other
, returns ControlFlow::Continue(())
.
Otherwise, returns ControlFlow::Break(self < other)
. Read moreSource§fn __chaining_le(&self, other: &(Z, Y, X, W, V, U, T)) -> ControlFlow<bool>
fn __chaining_le(&self, other: &(Z, Y, X, W, V, U, T)) -> ControlFlow<bool>
partial_ord_chaining_methods
)__chaining_lt
, but for <=
instead of <
.Source§fn __chaining_gt(&self, other: &(Z, Y, X, W, V, U, T)) -> ControlFlow<bool>
fn __chaining_gt(&self, other: &(Z, Y, X, W, V, U, T)) -> ControlFlow<bool>
partial_ord_chaining_methods
)__chaining_lt
, but for >
instead of <
.Source§fn __chaining_ge(&self, other: &(Z, Y, X, W, V, U, T)) -> ControlFlow<bool>
fn __chaining_ge(&self, other: &(Z, Y, X, W, V, U, T)) -> ControlFlow<bool>
partial_ord_chaining_methods
)__chaining_lt
, but for >=
instead of <
.1.28.0 · Source§impl<'a, T: ?Sized + 'a> RangeBounds<T> for (Bound<&'a T>, Bound<&'a T>)
impl<'a, T: ?Sized + 'a> RangeBounds<T> for (Bound<&'a T>, Bound<&'a T>)
1.28.0 · Source§impl<T> RangeBounds<T> for (Bound<T>, Bound<T>)
impl<T> RangeBounds<T> for (Bound<T>, Bound<T>)
1.53.0 · Source§impl<T> SliceIndex<[T]> for (Bound<usize>, Bound<usize>)
impl<T> SliceIndex<[T]> for (Bound<usize>, Bound<usize>)
Source§fn get(self, slice: &[T]) -> Option<&Self::Output>
fn get(self, slice: &[T]) -> Option<&Self::Output>
slice_index_methods
)Source§fn get_mut(self, slice: &mut [T]) -> Option<&mut Self::Output>
fn get_mut(self, slice: &mut [T]) -> Option<&mut Self::Output>
slice_index_methods
)Source§unsafe fn get_unchecked(self, slice: *const [T]) -> *const Self::Output
unsafe fn get_unchecked(self, slice: *const [T]) -> *const Self::Output
slice_index_methods
)Source§unsafe fn get_unchecked_mut(self, slice: *mut [T]) -> *mut Self::Output
unsafe fn get_unchecked_mut(self, slice: *mut [T]) -> *mut Self::Output
slice_index_methods
)Source§impl SliceIndex<ByteStr> for (Bound<usize>, Bound<usize>)
impl SliceIndex<ByteStr> for (Bound<usize>, Bound<usize>)
Source§fn get(self, slice: &ByteStr) -> Option<&Self::Output>
fn get(self, slice: &ByteStr) -> Option<&Self::Output>
slice_index_methods
)Source§fn get_mut(self, slice: &mut ByteStr) -> Option<&mut Self::Output>
fn get_mut(self, slice: &mut ByteStr) -> Option<&mut Self::Output>
slice_index_methods
)Source§unsafe fn get_unchecked(self, slice: *const ByteStr) -> *const Self::Output
unsafe fn get_unchecked(self, slice: *const ByteStr) -> *const Self::Output
slice_index_methods
)Source§unsafe fn get_unchecked_mut(self, slice: *mut ByteStr) -> *mut Self::Output
unsafe fn get_unchecked_mut(self, slice: *mut ByteStr) -> *mut Self::Output
slice_index_methods
)1.73.0 · Source§impl SliceIndex<str> for (Bound<usize>, Bound<usize>)
Implements substring slicing for arbitrary bounds.
impl SliceIndex<str> for (Bound<usize>, Bound<usize>)
Implements substring slicing for arbitrary bounds.
Returns a slice of the given string bounded by the byte indices provided by each bound.
This operation is O(1).
§Panics
Panics if begin
or end
(if it exists and once adjusted for
inclusion/exclusion) does not point to the starting byte offset of
a character (as defined by is_char_boundary
), if begin > end
, or if
end > len
.
Source§fn get(self, slice: &str) -> Option<&str>
fn get(self, slice: &str) -> Option<&str>
slice_index_methods
)Source§fn get_mut(self, slice: &mut str) -> Option<&mut str>
fn get_mut(self, slice: &mut str) -> Option<&mut str>
slice_index_methods
)Source§unsafe fn get_unchecked(self, slice: *const str) -> *const str
unsafe fn get_unchecked(self, slice: *const str) -> *const str
slice_index_methods
)Source§unsafe fn get_unchecked_mut(self, slice: *mut str) -> *mut str
unsafe fn get_unchecked_mut(self, slice: *mut str) -> *mut str
slice_index_methods
)impl<A: ConstParamTy_, Z: ConstParamTy_, Y: ConstParamTy_, X: ConstParamTy_, W: ConstParamTy_, V: ConstParamTy_, U: ConstParamTy_, T: ConstParamTy_> ConstParamTy_ for (A, Z, Y, X, W, V, U, T)
impl<B: ConstParamTy_, A: ConstParamTy_, Z: ConstParamTy_, Y: ConstParamTy_, X: ConstParamTy_, W: ConstParamTy_, V: ConstParamTy_, U: ConstParamTy_, T: ConstParamTy_> ConstParamTy_ for (B, A, Z, Y, X, W, V, U, T)
impl<C: ConstParamTy_, B: ConstParamTy_, A: ConstParamTy_, Z: ConstParamTy_, Y: ConstParamTy_, X: ConstParamTy_, W: ConstParamTy_, V: ConstParamTy_, U: ConstParamTy_, T: ConstParamTy_> ConstParamTy_ for (C, B, A, Z, Y, X, W, V, U, T)
impl<D: ConstParamTy_, C: ConstParamTy_, B: ConstParamTy_, A: ConstParamTy_, Z: ConstParamTy_, Y: ConstParamTy_, X: ConstParamTy_, W: ConstParamTy_, V: ConstParamTy_, U: ConstParamTy_, T: ConstParamTy_> ConstParamTy_ for (D, C, B, A, Z, Y, X, W, V, U, T)
impl<E: ConstParamTy_, D: ConstParamTy_, C: ConstParamTy_, B: ConstParamTy_, A: ConstParamTy_, Z: ConstParamTy_, Y: ConstParamTy_, X: ConstParamTy_, W: ConstParamTy_, V: ConstParamTy_, U: ConstParamTy_, T: ConstParamTy_> ConstParamTy_ for (E, D, C, B, A, Z, Y, X, W, V, U, T)
impl<T: ConstParamTy_> ConstParamTy_ for (T₁, T₂, …, Tₙ)
This trait is implemented for tuples up to twelve items long.
impl<U: ConstParamTy_, T: ConstParamTy_> ConstParamTy_ for (U, T)
impl<V: ConstParamTy_, U: ConstParamTy_, T: ConstParamTy_> ConstParamTy_ for (V, U, T)
impl<W: ConstParamTy_, V: ConstParamTy_, U: ConstParamTy_, T: ConstParamTy_> ConstParamTy_ for (W, V, U, T)
impl<X: ConstParamTy_, W: ConstParamTy_, V: ConstParamTy_, U: ConstParamTy_, T: ConstParamTy_> ConstParamTy_ for (X, W, V, U, T)
impl<Y: ConstParamTy_, X: ConstParamTy_, W: ConstParamTy_, V: ConstParamTy_, U: ConstParamTy_, T: ConstParamTy_> ConstParamTy_ for (Y, X, W, V, U, T)
impl<Z: ConstParamTy_, Y: ConstParamTy_, X: ConstParamTy_, W: ConstParamTy_, V: ConstParamTy_, U: ConstParamTy_, T: ConstParamTy_> ConstParamTy_ for (Z, Y, X, W, V, U, T)
impl Sealed for (Bound<usize>, Bound<usize>)
impl<A, Z, Y, X, W, V, U, T> StructuralPartialEq for (A, Z, Y, X, W, V, U, T)
impl<B, A, Z, Y, X, W, V, U, T> StructuralPartialEq for (B, A, Z, Y, X, W, V, U, T)
impl<C, B, A, Z, Y, X, W, V, U, T> StructuralPartialEq for (C, B, A, Z, Y, X, W, V, U, T)
impl<D, C, B, A, Z, Y, X, W, V, U, T> StructuralPartialEq for (D, C, B, A, Z, Y, X, W, V, U, T)
impl<E, D, C, B, A, Z, Y, X, W, V, U, T> StructuralPartialEq for (E, D, C, B, A, Z, Y, X, W, V, U, T)
impl<T> StructuralPartialEq for (T₁, T₂, …, Tₙ)
This trait is implemented for tuples up to twelve items long.
impl<U, T> StructuralPartialEq for (U, T)
impl<V, U, T> StructuralPartialEq for (V, U, T)
impl<W, V, U, T> StructuralPartialEq for (W, V, U, T)
impl<X, W, V, U, T> StructuralPartialEq for (X, W, V, U, T)
impl<Y, X, W, V, U, T> StructuralPartialEq for (Y, X, W, V, U, T)
impl<Z, Y, X, W, V, U, T> StructuralPartialEq for (Z, Y, X, W, V, U, T)
impl<A: UnsizedConstParamTy, Z: UnsizedConstParamTy, Y: UnsizedConstParamTy, X: UnsizedConstParamTy, W: UnsizedConstParamTy, V: UnsizedConstParamTy, U: UnsizedConstParamTy, T: UnsizedConstParamTy> UnsizedConstParamTy for (A, Z, Y, X, W, V, U, T)
impl<B: UnsizedConstParamTy, A: UnsizedConstParamTy, Z: UnsizedConstParamTy, Y: UnsizedConstParamTy, X: UnsizedConstParamTy, W: UnsizedConstParamTy, V: UnsizedConstParamTy, U: UnsizedConstParamTy, T: UnsizedConstParamTy> UnsizedConstParamTy for (B, A, Z, Y, X, W, V, U, T)
impl<C: UnsizedConstParamTy, B: UnsizedConstParamTy, A: UnsizedConstParamTy, Z: UnsizedConstParamTy, Y: UnsizedConstParamTy, X: UnsizedConstParamTy, W: UnsizedConstParamTy, V: UnsizedConstParamTy, U: UnsizedConstParamTy, T: UnsizedConstParamTy> UnsizedConstParamTy for (C, B, A, Z, Y, X, W, V, U, T)
impl<D: UnsizedConstParamTy, C: UnsizedConstParamTy, B: UnsizedConstParamTy, A: UnsizedConstParamTy, Z: UnsizedConstParamTy, Y: UnsizedConstParamTy, X: UnsizedConstParamTy, W: UnsizedConstParamTy, V: UnsizedConstParamTy, U: UnsizedConstParamTy, T: UnsizedConstParamTy> UnsizedConstParamTy for (D, C, B, A, Z, Y, X, W, V, U, T)
impl<E: UnsizedConstParamTy, D: UnsizedConstParamTy, C: UnsizedConstParamTy, B: UnsizedConstParamTy, A: UnsizedConstParamTy, Z: UnsizedConstParamTy, Y: UnsizedConstParamTy, X: UnsizedConstParamTy, W: UnsizedConstParamTy, V: UnsizedConstParamTy, U: UnsizedConstParamTy, T: UnsizedConstParamTy> UnsizedConstParamTy for (E, D, C, B, A, Z, Y, X, W, V, U, T)
impl<T: UnsizedConstParamTy> UnsizedConstParamTy for (T₁, T₂, …, Tₙ)
This trait is implemented for tuples up to twelve items long.
impl<U: UnsizedConstParamTy, T: UnsizedConstParamTy> UnsizedConstParamTy for (U, T)
impl<V: UnsizedConstParamTy, U: UnsizedConstParamTy, T: UnsizedConstParamTy> UnsizedConstParamTy for (V, U, T)
impl<W: UnsizedConstParamTy, V: UnsizedConstParamTy, U: UnsizedConstParamTy, T: UnsizedConstParamTy> UnsizedConstParamTy for (W, V, U, T)
impl<X: UnsizedConstParamTy, W: UnsizedConstParamTy, V: UnsizedConstParamTy, U: UnsizedConstParamTy, T: UnsizedConstParamTy> UnsizedConstParamTy for (X, W, V, U, T)
impl<Y: UnsizedConstParamTy, X: UnsizedConstParamTy, W: UnsizedConstParamTy, V: UnsizedConstParamTy, U: UnsizedConstParamTy, T: UnsizedConstParamTy> UnsizedConstParamTy for (Y, X, W, V, U, T)
impl<Z: UnsizedConstParamTy, Y: UnsizedConstParamTy, X: UnsizedConstParamTy, W: UnsizedConstParamTy, V: UnsizedConstParamTy, U: UnsizedConstParamTy, T: UnsizedConstParamTy> UnsizedConstParamTy for (Z, Y, X, W, V, U, T)
Auto Trait Implementations§
impl<T> Freeze for (T₁, T₂, …, Tₙ)where
T: Freeze,
impl<T> RefUnwindSafe for (T₁, T₂, …, Tₙ)where
T: RefUnwindSafe,
impl<T> Send for (T₁, T₂, …, Tₙ)where
T: Send,
impl<T> Sync for (T₁, T₂, …, Tₙ)where
T: Sync,
impl<T> Unpin for (T₁, T₂, …, Tₙ)where
T: Unpin,
impl<T> UnsafeUnpin for (T₁, T₂, …, Tₙ)where
T: UnsafeUnpin,
impl<T> UnwindSafe for (T₁, T₂, …, Tₙ)where
T: 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> SizedTypeProperties for T
impl<T> SizedTypeProperties for T
Source§#[doc(hidden)] const IS_ZST: bool = _
#[doc(hidden)] const IS_ZST: bool = _
sized_type_properties
)Source§#[doc(hidden)] const LAYOUT: Layout = _
#[doc(hidden)] const LAYOUT: Layout = _
sized_type_properties
)Source§#[doc(hidden)] const MAX_SLICE_LEN: usize = _
#[doc(hidden)] const MAX_SLICE_LEN: usize = _
sized_type_properties
)[Self]
. Read more