Primitive Type tuple

1.0.0 ·
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:

("hello", 5, 'c');
Run

‘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:

(&'static str, i32, char)
Run

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');
Run

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:

let tuple = ("hello", 5, 'c');

assert_eq!(tuple.0, "hello");
Run

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);
Run

Homogenous tuples can be created from arrays of appropriate length:

let array: [u32; 3] = [1, 2, 3];
let tuple: (u32, u32, u32) = array.into();
Run

Implementations§

source§

impl<T> (T,)

Trait Implementations§

source§

impl<T: Clone> Clone for (T₁, T₂, …, Tₙ)

This trait is implemented on arbitrary-length tuples.

source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
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)where T: ?Sized + Debug,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
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)where T: ?Sized + Debug,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
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)where T: ?Sized + Debug,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
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)where T: ?Sized + Debug,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
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)where T: ?Sized + Debug,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<T> Debug for (T₁, T₂, …, Tₙ)where T: ?Sized + Debug,

This trait is implemented for tuples up to twelve items long.

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<U: Debug, T> Debug for (U, T)where T: ?Sized + Debug,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<V: Debug, U: Debug, T> Debug for (V, U, T)where T: ?Sized + Debug,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<W: Debug, V: Debug, U: Debug, T> Debug for (W, V, U, T)where T: ?Sized + Debug,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<X: Debug, W: Debug, V: Debug, U: Debug, T> Debug for (X, W, V, U, T)where T: ?Sized + Debug,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<Y: Debug, X: Debug, W: Debug, V: Debug, U: Debug, T> Debug for (Y, X, W, V, U, T)where T: ?Sized + Debug,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<Z: Debug, Y: Debug, X: Debug, W: Debug, V: Debug, U: Debug, T> Debug for (Z, Y, X, W, V, U, T)where T: ?Sized + Debug,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
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)

source§

fn default() -> (A, Z, Y, X, W, V, U, T)

Returns the “default value” for a type. Read more
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)

source§

fn default() -> (B, A, Z, Y, X, W, V, U, T)

Returns the “default value” for a type. Read more
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)

source§

fn default() -> (C, B, A, Z, Y, X, W, V, U, T)

Returns the “default value” for a type. Read more
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)

source§

fn default() -> (D, C, B, A, Z, Y, X, W, V, U, T)

Returns the “default value” for a type. Read more
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)

source§

fn default() -> (E, D, C, B, A, Z, Y, X, W, V, U, T)

Returns the “default value” for a type. Read more
source§

impl<T: Default> Default for (T₁, T₂, …, Tₙ)

This trait is implemented for tuples up to twelve items long.

source§

fn default() -> (T,)

Returns the “default value” for a type. Read more
source§

impl<U: Default, T: Default> Default for (U, T)

source§

fn default() -> (U, T)

Returns the “default value” for a type. Read more
source§

impl<V: Default, U: Default, T: Default> Default for (V, U, T)

source§

fn default() -> (V, U, T)

Returns the “default value” for a type. Read more
source§

impl<W: Default, V: Default, U: Default, T: Default> Default for (W, V, U, T)

source§

fn default() -> (W, V, U, T)

Returns the “default value” for a type. Read more
source§

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)

Returns the “default value” for a type. Read more
source§

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)

Returns the “default value” for a type. Read more
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)

source§

fn default() -> (Z, Y, X, W, V, U, T)

Returns the “default value” for a type. Read more
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)where T: ?Sized + Eq,

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)where T: ?Sized + Eq,

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)where T: ?Sized + Eq,

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)where T: ?Sized + Eq,

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)where T: ?Sized + Eq,

source§

impl<T> Eq for (T₁, T₂, …, Tₙ)where T: ?Sized + Eq,

This trait is implemented for tuples up to twelve items long.

source§

impl<U: Eq, T> Eq for (U, T)where T: ?Sized + Eq,

source§

impl<V: Eq, U: Eq, T> Eq for (V, U, T)where T: ?Sized + Eq,

source§

impl<W: Eq, V: Eq, U: Eq, T> Eq for (W, V, U, T)where T: ?Sized + Eq,

source§

impl<X: Eq, W: Eq, V: Eq, U: Eq, T> Eq for (X, W, V, U, T)where T: ?Sized + Eq,

source§

impl<Y: Eq, X: Eq, W: Eq, V: Eq, U: Eq, T> Eq for (Y, X, W, V, U, T)where T: ?Sized + Eq,

source§

impl<Z: Eq, Y: Eq, X: Eq, W: Eq, V: Eq, U: Eq, T> Eq for (Z, Y, X, W, V, U, T)where T: ?Sized + Eq,

1.56.0 · source§

impl<A, B, ExtendA, ExtendB> Extend<(A, B)> for (ExtendA, ExtendB)where ExtendA: Extend<A>, ExtendB: Extend<B>,

source§

fn extend<T: IntoIterator<Item = (A, B)>>(&mut self, into_iter: T)

Allows to extend a tuple of collections that also implement Extend.

See also: Iterator::unzip

Examples
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]);
Run
source§

fn extend_one(&mut self, item: (A, B))

🔬This is a nightly-only experimental API. (extend_one #72631)
Extends a collection with exactly one element.
source§

fn extend_reserve(&mut self, additional: usize)

🔬This is a nightly-only experimental API. (extend_one #72631)
Reserves capacity in a collection for the given number of additional elements. Read more
1.71.0 · source§

impl<T> From<[T; 1]> for (T,)

source§

fn from(array: [T; 1]) -> Self

Converts to this type from the input type.
1.71.0 · source§

impl<T> From<[T; 10]> for (T, T, T, T, T, T, T, T, T, T)

source§

fn from(array: [T; 10]) -> Self

Converts to this type from the input type.
1.71.0 · source§

impl<T> From<[T; 11]> for (T, T, T, T, T, T, T, T, T, T, T)

source§

fn from(array: [T; 11]) -> Self

Converts to this type from the input type.
1.71.0 · source§

impl<T> From<[T; 12]> for (T, T, T, T, T, T, T, T, T, T, T, T)

source§

fn from(array: [T; 12]) -> Self

Converts to this type from the input type.
1.71.0 · source§

impl<T> From<[T; 2]> for (T, T)

source§

fn from(array: [T; 2]) -> Self

Converts to this type from the input type.
1.71.0 · source§

impl<T> From<[T; 3]> for (T, T, T)

source§

fn from(array: [T; 3]) -> Self

Converts to this type from the input type.
1.71.0 · source§

impl<T> From<[T; 4]> for (T, T, T, T)

source§

fn from(array: [T; 4]) -> Self

Converts to this type from the input type.
1.71.0 · source§

impl<T> From<[T; 5]> for (T, T, T, T, T)

source§

fn from(array: [T; 5]) -> Self

Converts to this type from the input type.
1.71.0 · source§

impl<T> From<[T; 6]> for (T, T, T, T, T, T)

source§

fn from(array: [T; 6]) -> Self

Converts to this type from the input type.
1.71.0 · source§

impl<T> From<[T; 7]> for (T, T, T, T, T, T, T)

source§

fn from(array: [T; 7]) -> Self

Converts to this type from the input type.
1.71.0 · source§

impl<T> From<[T; 8]> for (T, T, T, T, T, T, T, T)

source§

fn from(array: [T; 8]) -> Self

Converts to this type from the input type.
1.71.0 · source§

impl<T> From<[T; 9]> for (T, T, T, T, T, T, T, T, T)

source§

fn from(array: [T; 9]) -> Self

Converts to this type from the input type.
1.17.0 · source§

impl<I: Into<IpAddr>> From<(I, u16)> for SocketAddr

source§

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,)> for [T; 1]

source§

fn from(tuple: (T,)) -> Self

Converts to this type from the input type.
1.71.0 · source§

impl<T> From<(T, T)> for [T; 2]

source§

fn from(tuple: (T, T)) -> Self

Converts to this type from the input type.
1.71.0 · source§

impl<T> From<(T, T, T)> for [T; 3]

source§

fn from(tuple: (T, T, T)) -> Self

Converts to this type from the input type.
1.71.0 · source§

impl<T> From<(T, T, T, T)> for [T; 4]

source§

fn from(tuple: (T, T, T, T)) -> Self

Converts to this type from the input type.
1.71.0 · source§

impl<T> From<(T, T, T, T, T)> for [T; 5]

source§

fn from(tuple: (T, T, T, T, T)) -> Self

Converts to this type from the input type.
1.71.0 · source§

impl<T> From<(T, T, T, T, T, T)> for [T; 6]

source§

fn from(tuple: (T, T, T, T, T, T)) -> Self

Converts to this type from the input type.
1.71.0 · source§

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

Converts to this type from the input type.
1.71.0 · source§

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

Converts to this type from the input type.
1.71.0 · source§

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

Converts to this type from the input type.
1.71.0 · source§

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

Converts to this type from the input type.
1.71.0 · source§

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

Converts to this type from the input type.
1.71.0 · source§

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

Converts to this type from the input type.
source§

impl<T> Hash for (T₁, T₂, …, Tₙ)where T: ?Sized + Hash,

This trait is implemented for tuples up to twelve items long.

source§

fn hash<S: Hasher>(&self, state: &mut S)

Feeds this value into the given Hasher. Read more
source§

impl<T: Hash, B> Hash for (T, B)where B: ?Sized + Hash,

source§

fn hash<S: Hasher>(&self, state: &mut S)

Feeds this value into the given Hasher. Read more
source§

impl<T: Hash, B: Hash, C> Hash for (T, B, C)where C: ?Sized + Hash,

source§

fn hash<S: Hasher>(&self, state: &mut S)

Feeds this value into the given Hasher. Read more
source§

impl<T: Hash, B: Hash, C: Hash, D> Hash for (T, B, C, D)where D: ?Sized + Hash,

source§

fn hash<S: Hasher>(&self, state: &mut S)

Feeds this value into the given Hasher. Read more
source§

impl<T: Hash, B: Hash, C: Hash, D: Hash, E> Hash for (T, B, C, D, E)where E: ?Sized + Hash,

source§

fn hash<S: Hasher>(&self, state: &mut S)

Feeds this value into the given Hasher. Read more
source§

impl<T: Hash, B: Hash, C: Hash, D: Hash, E: Hash, F> Hash for (T, B, C, D, E, F)where F: ?Sized + Hash,

source§

fn hash<S: Hasher>(&self, state: &mut S)

Feeds this value into the given Hasher. Read more
source§

impl<T: Hash, B: Hash, C: Hash, D: Hash, E: Hash, F: Hash, G> Hash for (T, B, C, D, E, F, G)where G: ?Sized + Hash,

source§

fn hash<S: Hasher>(&self, state: &mut S)

Feeds this value into the given Hasher. Read more
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)where H: ?Sized + Hash,

source§

fn hash<S: Hasher>(&self, state: &mut S)

Feeds this value into the given Hasher. Read more
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)where I: ?Sized + Hash,

source§

fn hash<S: Hasher>(&self, state: &mut S)

Feeds this value into the given Hasher. Read more
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)where J: ?Sized + Hash,

source§

fn hash<S: Hasher>(&self, state: &mut S)

Feeds this value into the given Hasher. Read more
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)where K: ?Sized + Hash,

source§

fn hash<S: Hasher>(&self, state: &mut S)

Feeds this value into the given Hasher. Read more
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)where L: ?Sized + Hash,

source§

fn hash<S: Hasher>(&self, state: &mut S)

Feeds this value into the given Hasher. Read more
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)where T: ?Sized + Ord,

source§

fn cmp(&self, other: &(A, Z, Y, X, W, V, U, T)) -> Ordering

This method returns an Ordering between self and other. Read more
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)where T: ?Sized + Ord,

source§

fn cmp(&self, other: &(B, A, Z, Y, X, W, V, U, T)) -> Ordering

This method returns an Ordering between self and other. Read more
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)where T: ?Sized + Ord,

source§

fn cmp(&self, other: &(C, B, A, Z, Y, X, W, V, U, T)) -> Ordering

This method returns an Ordering between self and other. Read more
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)where T: ?Sized + Ord,

source§

fn cmp(&self, other: &(D, C, B, A, Z, Y, X, W, V, U, T)) -> Ordering

This method returns an Ordering between self and other. Read more
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)where T: ?Sized + Ord,

source§

fn cmp(&self, other: &(E, D, C, B, A, Z, Y, X, W, V, U, T)) -> Ordering

This method returns an Ordering between self and other. Read more
source§

impl<T> Ord for (T₁, T₂, …, Tₙ)where T: ?Sized + Ord,

This trait is implemented for tuples up to twelve items long.

source§

fn cmp(&self, other: &(T,)) -> Ordering

This method returns an Ordering between self and other. Read more
source§

impl<U: Ord, T> Ord for (U, T)where T: ?Sized + Ord,

source§

fn cmp(&self, other: &(U, T)) -> Ordering

This method returns an Ordering between self and other. Read more
source§

impl<V: Ord, U: Ord, T> Ord for (V, U, T)where T: ?Sized + Ord,

source§

fn cmp(&self, other: &(V, U, T)) -> Ordering

This method returns an Ordering between self and other. Read more
source§

impl<W: Ord, V: Ord, U: Ord, T> Ord for (W, V, U, T)where T: ?Sized + Ord,

source§

fn cmp(&self, other: &(W, V, U, T)) -> Ordering

This method returns an Ordering between self and other. Read more
source§

impl<X: Ord, W: Ord, V: Ord, U: Ord, T> Ord for (X, W, V, U, T)where T: ?Sized + Ord,

source§

fn cmp(&self, other: &(X, W, V, U, T)) -> Ordering

This method returns an Ordering between self and other. Read more
source§

impl<Y: Ord, X: Ord, W: Ord, V: Ord, U: Ord, T> Ord for (Y, X, W, V, U, T)where T: ?Sized + Ord,

source§

fn cmp(&self, other: &(Y, X, W, V, U, T)) -> Ordering

This method returns an Ordering between self and other. Read more
source§

impl<Z: Ord, Y: Ord, X: Ord, W: Ord, V: Ord, U: Ord, T> Ord for (Z, Y, X, W, V, U, T)where T: ?Sized + Ord,

source§

fn cmp(&self, other: &(Z, Y, X, W, V, U, T)) -> Ordering

This method returns an Ordering between self and other. Read more
source§

impl<A: PartialEq, Z: PartialEq, Y: PartialEq, X: PartialEq, W: PartialEq, V: PartialEq, U: PartialEq, T> PartialEq<(A, Z, Y, X, W, V, U, T)> for (A, Z, Y, X, W, V, U, T)where T: ?Sized + PartialEq,

source§

fn eq(&self, other: &(A, Z, Y, X, W, V, U, T)) -> bool

This method tests for 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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<B: PartialEq, A: PartialEq, Z: PartialEq, Y: PartialEq, X: PartialEq, W: PartialEq, V: PartialEq, U: PartialEq, T> PartialEq<(B, A, Z, Y, X, W, V, U, T)> for (B, A, Z, Y, X, W, V, U, T)where T: ?Sized + PartialEq,

source§

fn eq(&self, other: &(B, A, Z, Y, X, W, V, U, T)) -> bool

This method tests for 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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<C: PartialEq, B: PartialEq, A: PartialEq, Z: PartialEq, Y: PartialEq, X: PartialEq, W: PartialEq, V: PartialEq, U: PartialEq, T> PartialEq<(C, B, A, Z, Y, X, W, V, U, T)> for (C, B, A, Z, Y, X, W, V, U, T)where T: ?Sized + PartialEq,

source§

fn eq(&self, other: &(C, B, A, Z, Y, X, W, V, U, T)) -> bool

This method tests for 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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<D: PartialEq, C: PartialEq, B: PartialEq, A: PartialEq, Z: PartialEq, Y: PartialEq, X: PartialEq, W: PartialEq, V: PartialEq, U: PartialEq, T> PartialEq<(D, C, B, A, Z, Y, X, W, V, U, T)> for (D, C, B, A, Z, Y, X, W, V, U, T)where T: ?Sized + PartialEq,

source§

fn eq(&self, other: &(D, C, B, A, Z, Y, X, W, V, U, T)) -> bool

This method tests for 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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
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<(E, D, C, B, A, Z, Y, X, W, V, U, T)> for (E, D, C, B, A, Z, Y, X, W, V, U, T)where T: ?Sized + PartialEq,

source§

fn eq(&self, other: &(E, D, C, B, A, Z, Y, X, W, V, U, T)) -> bool

This method tests for 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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<T> PartialEq<(T,)> for (T₁, T₂, …, Tₙ)where T: ?Sized + PartialEq,

This trait is implemented for tuples up to twelve items long.

source§

fn eq(&self, other: &(T,)) -> bool

This method tests for self and other values to be equal, and is used by ==.
source§

fn ne(&self, other: &(T,)) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<U: PartialEq, T> PartialEq<(U, T)> for (U, T)where T: ?Sized + PartialEq,

source§

fn eq(&self, other: &(U, T)) -> bool

This method tests for self and other values to be equal, and is used by ==.
source§

fn ne(&self, other: &(U, T)) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<V: PartialEq, U: PartialEq, T> PartialEq<(V, U, T)> for (V, U, T)where T: ?Sized + PartialEq,

source§

fn eq(&self, other: &(V, U, T)) -> bool

This method tests for self and other values to be equal, and is used by ==.
source§

fn ne(&self, other: &(V, U, T)) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<W: PartialEq, V: PartialEq, U: PartialEq, T> PartialEq<(W, V, U, T)> for (W, V, U, T)where T: ?Sized + PartialEq,

source§

fn eq(&self, other: &(W, V, U, T)) -> bool

This method tests for self and other values to be equal, and is used by ==.
source§

fn ne(&self, other: &(W, V, U, T)) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<X: PartialEq, W: PartialEq, V: PartialEq, U: PartialEq, T> PartialEq<(X, W, V, U, T)> for (X, W, V, U, T)where T: ?Sized + PartialEq,

source§

fn eq(&self, other: &(X, W, V, U, T)) -> bool

This method tests for self and other values to be equal, and is used by ==.
source§

fn ne(&self, other: &(X, W, V, U, T)) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<Y: PartialEq, X: PartialEq, W: PartialEq, V: PartialEq, U: PartialEq, T> PartialEq<(Y, X, W, V, U, T)> for (Y, X, W, V, U, T)where T: ?Sized + PartialEq,

source§

fn eq(&self, other: &(Y, X, W, V, U, T)) -> bool

This method tests for self and other values to be equal, and is used by ==.
source§

fn ne(&self, other: &(Y, X, W, V, U, T)) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<Z: PartialEq, Y: PartialEq, X: PartialEq, W: PartialEq, V: PartialEq, U: PartialEq, T> PartialEq<(Z, Y, X, W, V, U, T)> for (Z, Y, X, W, V, U, T)where T: ?Sized + PartialEq,

source§

fn eq(&self, other: &(Z, Y, X, W, V, U, T)) -> bool

This method tests for self and other values to be equal, and is used by ==.
source§

fn ne(&self, other: &(Z, Y, X, W, V, U, T)) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<A: PartialOrd, Z: PartialOrd, Y: PartialOrd, X: PartialOrd, W: PartialOrd, V: PartialOrd, U: PartialOrd, T> PartialOrd<(A, Z, Y, X, W, V, U, T)> 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>

This method returns an ordering between self and other values if one exists. Read more
source§

fn lt(&self, other: &(A, Z, Y, X, W, V, U, T)) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
source§

fn le(&self, other: &(A, Z, Y, X, W, V, U, T)) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
source§

fn ge(&self, other: &(A, Z, Y, X, W, V, U, T)) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

fn gt(&self, other: &(A, Z, Y, X, W, V, U, T)) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
source§

impl<B: PartialOrd, A: PartialOrd, Z: PartialOrd, Y: PartialOrd, X: PartialOrd, W: PartialOrd, V: PartialOrd, U: PartialOrd, T> PartialOrd<(B, A, Z, Y, X, W, V, U, T)> 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>

This method returns an ordering between self and other values if one exists. Read more
source§

fn lt(&self, other: &(B, A, Z, Y, X, W, V, U, T)) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
source§

fn le(&self, other: &(B, A, Z, Y, X, W, V, U, T)) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
source§

fn ge(&self, other: &(B, A, Z, Y, X, W, V, U, T)) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

fn gt(&self, other: &(B, A, Z, Y, X, W, V, U, T)) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
source§

impl<C: PartialOrd, B: PartialOrd, A: PartialOrd, Z: PartialOrd, Y: PartialOrd, X: PartialOrd, W: PartialOrd, V: PartialOrd, U: PartialOrd, T> PartialOrd<(C, B, A, Z, Y, X, W, V, U, T)> 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>

This method returns an ordering between self and other values if one exists. Read more
source§

fn lt(&self, other: &(C, B, A, Z, Y, X, W, V, U, T)) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
source§

fn le(&self, other: &(C, B, A, Z, Y, X, W, V, U, T)) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
source§

fn ge(&self, other: &(C, B, A, Z, Y, X, W, V, U, T)) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

fn gt(&self, other: &(C, B, A, Z, Y, X, W, V, U, T)) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
source§

impl<D: PartialOrd, C: PartialOrd, B: PartialOrd, A: PartialOrd, Z: PartialOrd, Y: PartialOrd, X: PartialOrd, W: PartialOrd, V: PartialOrd, U: PartialOrd, T> PartialOrd<(D, C, B, A, Z, Y, X, W, V, U, T)> 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>

This method returns an ordering between self and other values if one exists. Read more
source§

fn lt(&self, other: &(D, C, B, A, Z, Y, X, W, V, U, T)) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
source§

fn le(&self, other: &(D, C, B, A, Z, Y, X, W, V, U, T)) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
source§

fn ge(&self, other: &(D, C, B, A, Z, Y, X, W, V, U, T)) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

fn gt(&self, other: &(D, C, B, A, Z, Y, X, W, V, U, T)) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
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<(E, D, C, B, A, Z, Y, X, W, V, U, T)> 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>

This method returns an ordering between self and other values if one exists. Read more
source§

fn lt(&self, other: &(E, D, C, B, A, Z, Y, X, W, V, U, T)) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
source§

fn le(&self, other: &(E, D, C, B, A, Z, Y, X, W, V, U, T)) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
source§

fn ge(&self, other: &(E, D, C, B, A, Z, Y, X, W, V, U, T)) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

fn gt(&self, other: &(E, D, C, B, A, Z, Y, X, W, V, U, T)) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
source§

impl<T> PartialOrd<(T,)> for (T₁, T₂, …, Tₙ)where T: ?Sized + PartialOrd,

This trait is implemented for tuples up to twelve items long.

source§

fn partial_cmp(&self, other: &(T,)) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
source§

fn lt(&self, other: &(T,)) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
source§

fn le(&self, other: &(T,)) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
source§

fn ge(&self, other: &(T,)) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

fn gt(&self, other: &(T,)) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
source§

impl<U: PartialOrd, T> PartialOrd<(U, T)> for (U, T)where T: ?Sized + PartialOrd,

source§

fn partial_cmp(&self, other: &(U, T)) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
source§

fn lt(&self, other: &(U, T)) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
source§

fn le(&self, other: &(U, T)) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
source§

fn ge(&self, other: &(U, T)) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

fn gt(&self, other: &(U, T)) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
source§

impl<V: PartialOrd, U: PartialOrd, T> PartialOrd<(V, U, T)> for (V, U, T)where T: ?Sized + PartialOrd,

source§

fn partial_cmp(&self, other: &(V, U, T)) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
source§

fn lt(&self, other: &(V, U, T)) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
source§

fn le(&self, other: &(V, U, T)) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
source§

fn ge(&self, other: &(V, U, T)) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

fn gt(&self, other: &(V, U, T)) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
source§

impl<W: PartialOrd, V: PartialOrd, U: PartialOrd, T> PartialOrd<(W, V, U, T)> for (W, V, U, T)where T: ?Sized + PartialOrd,

source§

fn partial_cmp(&self, other: &(W, V, U, T)) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
source§

fn lt(&self, other: &(W, V, U, T)) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
source§

fn le(&self, other: &(W, V, U, T)) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
source§

fn ge(&self, other: &(W, V, U, T)) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

fn gt(&self, other: &(W, V, U, T)) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
source§

impl<X: PartialOrd, W: PartialOrd, V: PartialOrd, U: PartialOrd, T> PartialOrd<(X, W, V, U, T)> for (X, W, V, U, T)where T: ?Sized + PartialOrd,

source§

fn partial_cmp(&self, other: &(X, W, V, U, T)) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
source§

fn lt(&self, other: &(X, W, V, U, T)) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
source§

fn le(&self, other: &(X, W, V, U, T)) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
source§

fn ge(&self, other: &(X, W, V, U, T)) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

fn gt(&self, other: &(X, W, V, U, T)) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
source§

impl<Y: PartialOrd, X: PartialOrd, W: PartialOrd, V: PartialOrd, U: PartialOrd, T> PartialOrd<(Y, X, W, V, U, T)> 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>

This method returns an ordering between self and other values if one exists. Read more
source§

fn lt(&self, other: &(Y, X, W, V, U, T)) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
source§

fn le(&self, other: &(Y, X, W, V, U, T)) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
source§

fn ge(&self, other: &(Y, X, W, V, U, T)) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

fn gt(&self, other: &(Y, X, W, V, U, T)) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
source§

impl<Z: PartialOrd, Y: PartialOrd, X: PartialOrd, W: PartialOrd, V: PartialOrd, U: PartialOrd, T> PartialOrd<(Z, Y, X, W, V, U, T)> 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>

This method returns an ordering between self and other values if one exists. Read more
source§

fn lt(&self, other: &(Z, Y, X, W, V, U, T)) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
source§

fn le(&self, other: &(Z, Y, X, W, V, U, T)) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
source§

fn ge(&self, other: &(Z, Y, X, W, V, U, T)) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

fn gt(&self, other: &(Z, Y, X, W, V, U, T)) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.28.0 · source§

impl<'a, T: ?Sized + 'a> RangeBounds<T> for (Bound<&'a T>, Bound<&'a T>)

source§

fn start_bound(&self) -> Bound<&T>

Start index bound. Read more
source§

fn end_bound(&self) -> Bound<&T>

End index bound. Read more
1.35.0 · source§

fn contains<U>(&self, item: &U) -> boolwhere T: PartialOrd<U>, U: ?Sized + PartialOrd<T>,

Returns true if item is contained in the range. Read more
1.28.0 · source§

impl<T> RangeBounds<T> for (Bound<T>, Bound<T>)

source§

fn start_bound(&self) -> Bound<&T>

Start index bound. Read more
source§

fn end_bound(&self) -> Bound<&T>

End index bound. Read more
1.35.0 · source§

fn contains<U>(&self, item: &U) -> boolwhere T: PartialOrd<U>, U: ?Sized + PartialOrd<T>,

Returns true if item is contained in the range. Read more
1.53.0 · source§

impl<T> SliceIndex<[T]> for (Bound<usize>, Bound<usize>)

§

type Output = [T]

The output type returned by methods.
source§

fn get(self, slice: &[T]) -> Option<&Self::Output>

🔬This is a nightly-only experimental API. (slice_index_methods)
Returns a shared reference to the output at this location, if in bounds.
source§

fn get_mut(self, slice: &mut [T]) -> Option<&mut Self::Output>

🔬This is a nightly-only experimental API. (slice_index_methods)
Returns a mutable reference to the output at this location, if in bounds.
source§

unsafe fn get_unchecked(self, slice: *const [T]) -> *const Self::Output

🔬This is a nightly-only experimental API. (slice_index_methods)
Returns a shared reference to the output at this location, without performing any bounds checking. Calling this method with an out-of-bounds index or a dangling slice pointer is undefined behavior even if the resulting reference is not used.
source§

unsafe fn get_unchecked_mut(self, slice: *mut [T]) -> *mut Self::Output

🔬This is a nightly-only experimental API. (slice_index_methods)
Returns a mutable reference to the output at this location, without performing any bounds checking. Calling this method with an out-of-bounds index or a dangling slice pointer is undefined behavior even if the resulting reference is not used.
source§

fn index(self, slice: &[T]) -> &Self::Output

🔬This is a nightly-only experimental API. (slice_index_methods)
Returns a shared reference to the output at this location, panicking if out of bounds.
source§

fn index_mut(self, slice: &mut [T]) -> &mut Self::Output

🔬This is a nightly-only experimental API. (slice_index_methods)
Returns a mutable reference to the output at this location, panicking if out of bounds.
source§

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)

source§

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)

source§

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)

source§

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)

source§

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)

source§

impl<T: ConstParamTy> ConstParamTy for (T₁, T₂, …, Tₙ)

This trait is implemented for tuples up to twelve items long.

source§

impl<U: ConstParamTy, T: ConstParamTy> ConstParamTy for (U, T)

source§

impl<V: ConstParamTy, U: ConstParamTy, T: ConstParamTy> ConstParamTy for (V, U, T)

source§

impl<W: ConstParamTy, V: ConstParamTy, U: ConstParamTy, T: ConstParamTy> ConstParamTy for (W, V, U, T)

source§

impl<X: ConstParamTy, W: ConstParamTy, V: ConstParamTy, U: ConstParamTy, T: ConstParamTy> ConstParamTy for (X, W, V, U, T)

source§

impl<Y: ConstParamTy, X: ConstParamTy, W: ConstParamTy, V: ConstParamTy, U: ConstParamTy, T: ConstParamTy> ConstParamTy for (Y, X, W, V, U, T)

source§

impl<Z: ConstParamTy, Y: ConstParamTy, X: ConstParamTy, W: ConstParamTy, V: ConstParamTy, U: ConstParamTy, T: ConstParamTy> ConstParamTy for (Z, Y, X, W, V, U, T)

source§

impl<T: Copy> Copy for (T₁, T₂, …, Tₙ)

This trait is implemented on arbitrary-length tuples.

1.53.0 · source§

impl Sealed for (Bound<usize>, Bound<usize>)

source§

impl<A, Z, Y, X, W, V, U, T> StructuralEq for (A, Z, Y, X, W, V, U, T)

source§

impl<B, A, Z, Y, X, W, V, U, T> StructuralEq for (B, A, Z, Y, X, W, V, U, T)

source§

impl<C, B, A, Z, Y, X, W, V, U, T> StructuralEq for (C, B, A, Z, Y, X, W, V, U, T)

source§

impl<D, C, B, A, Z, Y, X, W, V, U, T> StructuralEq for (D, C, B, A, Z, Y, X, W, V, U, T)

source§

impl<E, D, C, B, A, Z, Y, X, W, V, U, T> StructuralEq for (E, D, C, B, A, Z, Y, X, W, V, U, T)

source§

impl<T> StructuralEq for (T₁, T₂, …, Tₙ)

This trait is implemented for tuples up to twelve items long.

source§

impl<U, T> StructuralEq for (U, T)

source§

impl<V, U, T> StructuralEq for (V, U, T)

source§

impl<W, V, U, T> StructuralEq for (W, V, U, T)

source§

impl<X, W, V, U, T> StructuralEq for (X, W, V, U, T)

source§

impl<Y, X, W, V, U, T> StructuralEq for (Y, X, W, V, U, T)

source§

impl<Z, Y, X, W, V, U, T> StructuralEq for (Z, Y, X, W, V, U, T)

source§

impl<A, Z, Y, X, W, V, U, T> StructuralPartialEq for (A, Z, Y, X, W, V, U, T)

source§

impl<B, A, Z, Y, X, W, V, U, T> StructuralPartialEq for (B, A, Z, Y, X, W, V, U, T)

source§

impl<C, B, A, Z, Y, X, W, V, U, T> StructuralPartialEq for (C, B, A, Z, Y, X, W, V, U, T)

source§

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)

source§

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)

source§

impl<T> StructuralPartialEq for (T₁, T₂, …, Tₙ)

This trait is implemented for tuples up to twelve items long.

source§

impl<U, T> StructuralPartialEq for (U, T)

source§

impl<V, U, T> StructuralPartialEq for (V, U, T)

source§

impl<W, V, U, T> StructuralPartialEq for (W, V, U, T)

source§

impl<X, W, V, U, T> StructuralPartialEq for (X, W, V, U, T)

source§

impl<Y, X, W, V, U, T> StructuralPartialEq for (Y, X, W, V, U, T)

source§

impl<Z, Y, X, W, V, U, T> StructuralPartialEq for (Z, Y, X, W, V, U, T)

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> SizedTypeProperties for T

source§

const IS_ZST: bool = _

🔬This is a nightly-only experimental API. (sized_type_properties)
true if this type requires no storage. false if its size is greater than zero. Read more
source§

impl<T> SpecOptionPartialEq for Twhere T: PartialEq<T>,

source§

default fn eq(l: &Option<T>, r: &Option<T>) -> bool

🔬This is a nightly-only experimental API. (spec_option_partial_eq)
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> Printable for Twhere T: Copy + Debug,