Primitive Type tuple1.0.0[]

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

If every type inside a tuple implements one of the following traits, then a tuple itself also implements it.

Due to a temporary restriction in Rust’s type system, these traits are only implemented on tuples of arity 12 or less. In the future, this may change.

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

Trait Implementations

impl<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> Debug for (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11) where
    T1: Debug,
    T2: Debug,
    T3: Debug,
    T4: Debug,
    T5: Debug,
    T6: Debug,
    T7: Debug,
    T8: Debug,
    T9: Debug,
    T10: Debug,
    T11: Debug + ?Sized
[src]

pub fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>[src]

Formats the value using the given formatter. Read more

impl<T11> Debug for (T11,) where
    T11: Debug + ?Sized
[src]

pub fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>[src]

Formats the value using the given formatter. Read more

impl<T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> Debug for (T2, T3, T4, T5, T6, T7, T8, T9, T10, T11) where
    T2: Debug,
    T3: Debug,
    T4: Debug,
    T5: Debug,
    T6: Debug,
    T7: Debug,
    T8: Debug,
    T9: Debug,
    T10: Debug,
    T11: Debug + ?Sized
[src]

pub fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>[src]

Formats the value using the given formatter. Read more

impl<T3, T4, T5, T6, T7, T8, T9, T10, T11> Debug for (T3, T4, T5, T6, T7, T8, T9, T10, T11) where
    T3: Debug,
    T4: Debug,
    T5: Debug,
    T6: Debug,
    T7: Debug,
    T8: Debug,
    T9: Debug,
    T10: Debug,
    T11: Debug + ?Sized
[src]

pub fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>[src]

Formats the value using the given formatter. Read more

impl<T6, T7, T8, T9, T10, T11> Debug for (T6, T7, T8, T9, T10, T11) where
    T6: Debug,
    T7: Debug,
    T8: Debug,
    T9: Debug,
    T10: Debug,
    T11: Debug + ?Sized
[src]

pub fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>[src]

Formats the value using the given formatter. Read more

impl<T9, T10, T11> Debug for (T9, T10, T11) where
    T9: Debug,
    T10: Debug,
    T11: Debug + ?Sized
[src]

pub fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>[src]

Formats the value using the given formatter. Read more

impl<T4, T5, T6, T7, T8, T9, T10, T11> Debug for (T4, T5, T6, T7, T8, T9, T10, T11) where
    T4: Debug,
    T5: Debug,
    T6: Debug,
    T7: Debug,
    T8: Debug,
    T9: Debug,
    T10: Debug,
    T11: Debug + ?Sized
[src]

pub fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>[src]

Formats the value using the given formatter. Read more

impl<T10, T11> Debug for (T10, T11) where
    T10: Debug,
    T11: Debug + ?Sized
[src]

pub fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>[src]

Formats the value using the given formatter. Read more

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> Debug for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11) where
    T0: Debug,
    T1: Debug,
    T2: Debug,
    T3: Debug,
    T4: Debug,
    T5: Debug,
    T6: Debug,
    T7: Debug,
    T8: Debug,
    T9: Debug,
    T10: Debug,
    T11: Debug + ?Sized
[src]

pub fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>[src]

Formats the value using the given formatter. Read more

impl<T5, T6, T7, T8, T9, T10, T11> Debug for (T5, T6, T7, T8, T9, T10, T11) where
    T5: Debug,
    T6: Debug,
    T7: Debug,
    T8: Debug,
    T9: Debug,
    T10: Debug,
    T11: Debug + ?Sized
[src]

pub fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>[src]

Formats the value using the given formatter. Read more

impl<T8, T9, T10, T11> Debug for (T8, T9, T10, T11) where
    T8: Debug,
    T9: Debug,
    T10: Debug,
    T11: Debug + ?Sized
[src]

pub fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>[src]

Formats the value using the given formatter. Read more

impl<T7, T8, T9, T10, T11> Debug for (T7, T8, T9, T10, T11) where
    T7: Debug,
    T8: Debug,
    T9: Debug,
    T10: Debug,
    T11: Debug + ?Sized
[src]

pub fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>[src]

Formats the value using the given formatter. Read more

impl<A, B, C> Default for (A, B, C) where
    C: Default,
    B: Default,
    A: Default
[src]

pub fn default() -> (A, B, C)[src]

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

impl<A, B, C, D, E, F, G, H, I, J, K, L> Default for (A, B, C, D, E, F, G, H, I, J, K, L) where
    C: Default,
    F: Default,
    K: Default,
    I: Default,
    E: Default,
    H: Default,
    B: Default,
    A: Default,
    J: Default,
    G: Default,
    D: Default,
    L: Default
[src]

pub fn default() -> (A, B, C, D, E, F, G, H, I, J, K, L)[src]

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

impl<A, B, C, D, E, F, G, H, I, J> Default for (A, B, C, D, E, F, G, H, I, J) where
    C: Default,
    F: Default,
    I: Default,
    E: Default,
    H: Default,
    B: Default,
    A: Default,
    J: Default,
    G: Default,
    D: Default
[src]

pub fn default() -> (A, B, C, D, E, F, G, H, I, J)[src]

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

impl<A, B, C, D> Default for (A, B, C, D) where
    C: Default,
    B: Default,
    A: Default,
    D: Default
[src]

pub fn default() -> (A, B, C, D)[src]

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

impl<A, B, C, D, E, F, G> Default for (A, B, C, D, E, F, G) where
    C: Default,
    F: Default,
    E: Default,
    B: Default,
    A: Default,
    G: Default,
    D: Default
[src]

pub fn default() -> (A, B, C, D, E, F, G)[src]

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

impl<A, B, C, D, E, F, G, H> Default for (A, B, C, D, E, F, G, H) where
    C: Default,
    F: Default,
    E: Default,
    H: Default,
    B: Default,
    A: Default,
    G: Default,
    D: Default
[src]

pub fn default() -> (A, B, C, D, E, F, G, H)[src]

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

impl<A, B, C, D, E, F> Default for (A, B, C, D, E, F) where
    C: Default,
    F: Default,
    E: Default,
    B: Default,
    A: Default,
    D: Default
[src]

pub fn default() -> (A, B, C, D, E, F)[src]

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

impl<A, B, C, D, E, F, G, H, I, J, K> Default for (A, B, C, D, E, F, G, H, I, J, K) where
    C: Default,
    F: Default,
    K: Default,
    I: Default,
    E: Default,
    H: Default,
    B: Default,
    A: Default,
    J: Default,
    G: Default,
    D: Default
[src]

pub fn default() -> (A, B, C, D, E, F, G, H, I, J, K)[src]

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

impl<A, B, C, D, E, F, G, H, I> Default for (A, B, C, D, E, F, G, H, I) where
    C: Default,
    F: Default,
    I: Default,
    E: Default,
    H: Default,
    B: Default,
    A: Default,
    G: Default,
    D: Default
[src]

pub fn default() -> (A, B, C, D, E, F, G, H, I)[src]

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

impl<A, B> Default for (A, B) where
    B: Default,
    A: Default
[src]

pub fn default() -> (A, B)[src]

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

impl<A> Default for (A,) where
    A: Default
[src]

pub fn default() -> (A,)[src]

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

impl<A, B, C, D, E> Default for (A, B, C, D, E) where
    C: Default,
    E: Default,
    B: Default,
    A: Default,
    D: Default
[src]

pub fn default() -> (A, B, C, D, E)[src]

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

impl<A, B> Hash for (A, B) where
    B: Hash + ?Sized,
    A: Hash
[src]

pub fn hash<S>(&self, state: &mut S) where
    S: Hasher
[src]

Feeds this value into the given Hasher. Read more

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0[src]

Feeds a slice of this type into the given Hasher. Read more

impl<A, B, C, D, E, F> Hash for (A, B, C, D, E, F) where
    C: Hash,
    F: Hash + ?Sized,
    E: Hash,
    B: Hash,
    A: Hash,
    D: Hash
[src]

pub fn hash<S>(&self, state: &mut S) where
    S: Hasher
[src]

Feeds this value into the given Hasher. Read more

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0[src]

Feeds a slice of this type into the given Hasher. Read more

impl<A, B, C, D, E, F, G, H, I> Hash for (A, B, C, D, E, F, G, H, I) where
    C: Hash,
    F: Hash,
    I: Hash + ?Sized,
    E: Hash,
    H: Hash,
    B: Hash,
    A: Hash,
    G: Hash,
    D: Hash
[src]

pub fn hash<S>(&self, state: &mut S) where
    S: Hasher
[src]

Feeds this value into the given Hasher. Read more

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0[src]

Feeds a slice of this type into the given Hasher. Read more

impl<A, B, C, D, E, F, G, H, I, J, K, L> Hash for (A, B, C, D, E, F, G, H, I, J, K, L) where
    C: Hash,
    F: Hash,
    K: Hash,
    I: Hash,
    E: Hash,
    H: Hash,
    B: Hash,
    A: Hash,
    J: Hash,
    G: Hash,
    D: Hash,
    L: Hash + ?Sized
[src]

pub fn hash<S>(&self, state: &mut S) where
    S: Hasher
[src]

Feeds this value into the given Hasher. Read more

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0[src]

Feeds a slice of this type into the given Hasher. Read more

impl<A, B, C, D, E, F, G, H, I, J> Hash for (A, B, C, D, E, F, G, H, I, J) where
    C: Hash,
    F: Hash,
    I: Hash,
    E: Hash,
    H: Hash,
    B: Hash,
    A: Hash,
    J: Hash + ?Sized,
    G: Hash,
    D: Hash
[src]

pub fn hash<S>(&self, state: &mut S) where
    S: Hasher
[src]

Feeds this value into the given Hasher. Read more

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0[src]

Feeds a slice of this type into the given Hasher. Read more

impl<A, B, C, D, E, F, G, H> Hash for (A, B, C, D, E, F, G, H) where
    C: Hash,
    F: Hash,
    E: Hash,
    H: Hash + ?Sized,
    B: Hash,
    A: Hash,
    G: Hash,
    D: Hash
[src]

pub fn hash<S>(&self, state: &mut S) where
    S: Hasher
[src]

Feeds this value into the given Hasher. Read more

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0[src]

Feeds a slice of this type into the given Hasher. Read more

impl<A, B, C, D, E, F, G, H, I, J, K> Hash for (A, B, C, D, E, F, G, H, I, J, K) where
    C: Hash,
    F: Hash,
    K: Hash + ?Sized,
    I: Hash,
    E: Hash,
    H: Hash,
    B: Hash,
    A: Hash,
    J: Hash,
    G: Hash,
    D: Hash
[src]

pub fn hash<S>(&self, state: &mut S) where
    S: Hasher
[src]

Feeds this value into the given Hasher. Read more

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0[src]

Feeds a slice of this type into the given Hasher. Read more

impl<A, B, C> Hash for (A, B, C) where
    C: Hash + ?Sized,
    B: Hash,
    A: Hash
[src]

pub fn hash<S>(&self, state: &mut S) where
    S: Hasher
[src]

Feeds this value into the given Hasher. Read more

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0[src]

Feeds a slice of this type into the given Hasher. Read more

impl<A, B, C, D, E, F, G> Hash for (A, B, C, D, E, F, G) where
    C: Hash,
    F: Hash,
    E: Hash,
    B: Hash,
    A: Hash,
    G: Hash + ?Sized,
    D: Hash
[src]

pub fn hash<S>(&self, state: &mut S) where
    S: Hasher
[src]

Feeds this value into the given Hasher. Read more

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0[src]

Feeds a slice of this type into the given Hasher. Read more

impl<A> Hash for (A,) where
    A: Hash + ?Sized
[src]

pub fn hash<S>(&self, state: &mut S) where
    S: Hasher
[src]

Feeds this value into the given Hasher. Read more

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0[src]

Feeds a slice of this type into the given Hasher. Read more

impl<A, B, C, D, E> Hash for (A, B, C, D, E) where
    C: Hash,
    E: Hash + ?Sized,
    B: Hash,
    A: Hash,
    D: Hash
[src]

pub fn hash<S>(&self, state: &mut S) where
    S: Hasher
[src]

Feeds this value into the given Hasher. Read more

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0[src]

Feeds a slice of this type into the given Hasher. Read more

impl<A, B, C, D> Hash for (A, B, C, D) where
    C: Hash,
    B: Hash,
    A: Hash,
    D: Hash + ?Sized
[src]

pub fn hash<S>(&self, state: &mut S) where
    S: Hasher
[src]

Feeds this value into the given Hasher. Read more

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0[src]

Feeds a slice of this type into the given Hasher. Read more

impl<A, B> Ord for (A, B) where
    B: Ord + ?Sized,
    A: Ord
[src]

pub fn cmp(&self, other: &(A, B)) -> Ordering[src]

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

#[must_use]
fn max(self, other: Self) -> Self
1.21.0[src]

Compares and returns the maximum of two values. Read more

#[must_use]
fn min(self, other: Self) -> Self
1.21.0[src]

Compares and returns the minimum of two values. Read more

#[must_use]
fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]

Restrict a value to a certain interval. Read more

impl<A, B, C, D, E, F, G, H, I, J> Ord for (A, B, C, D, E, F, G, H, I, J) where
    C: Ord,
    F: Ord,
    I: Ord,
    E: Ord,
    H: Ord,
    B: Ord,
    A: Ord,
    J: Ord + ?Sized,
    G: Ord,
    D: Ord
[src]

pub fn cmp(&self, other: &(A, B, C, D, E, F, G, H, I, J)) -> Ordering[src]

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

#[must_use]
fn max(self, other: Self) -> Self
1.21.0[src]

Compares and returns the maximum of two values. Read more

#[must_use]
fn min(self, other: Self) -> Self
1.21.0[src]

Compares and returns the minimum of two values. Read more

#[must_use]
fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]

Restrict a value to a certain interval. Read more

impl<A, B, C, D, E, F, G> Ord for (A, B, C, D, E, F, G) where
    C: Ord,
    F: Ord,
    E: Ord,
    B: Ord,
    A: Ord,
    G: Ord + ?Sized,
    D: Ord
[src]

pub fn cmp(&self, other: &(A, B, C, D, E, F, G)) -> Ordering[src]

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

#[must_use]
fn max(self, other: Self) -> Self
1.21.0[src]

Compares and returns the maximum of two values. Read more

#[must_use]
fn min(self, other: Self) -> Self
1.21.0[src]

Compares and returns the minimum of two values. Read more

#[must_use]
fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]

Restrict a value to a certain interval. Read more

impl<A, B, C> Ord for (A, B, C) where
    C: Ord + ?Sized,
    B: Ord,
    A: Ord
[src]

pub fn cmp(&self, other: &(A, B, C)) -> Ordering[src]

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

#[must_use]
fn max(self, other: Self) -> Self
1.21.0[src]

Compares and returns the maximum of two values. Read more

#[must_use]
fn min(self, other: Self) -> Self
1.21.0[src]

Compares and returns the minimum of two values. Read more

#[must_use]
fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]

Restrict a value to a certain interval. Read more

impl<A, B, C, D, E, F> Ord for (A, B, C, D, E, F) where
    C: Ord,
    F: Ord + ?Sized,
    E: Ord,
    B: Ord,
    A: Ord,
    D: Ord
[src]

pub fn cmp(&self, other: &(A, B, C, D, E, F)) -> Ordering[src]

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

#[must_use]
fn max(self, other: Self) -> Self
1.21.0[src]

Compares and returns the maximum of two values. Read more

#[must_use]
fn min(self, other: Self) -> Self
1.21.0[src]

Compares and returns the minimum of two values. Read more

#[must_use]
fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]

Restrict a value to a certain interval. Read more

impl<A, B, C, D, E, F, G, H> Ord for (A, B, C, D, E, F, G, H) where
    C: Ord,
    F: Ord,
    E: Ord,
    H: Ord + ?Sized,
    B: Ord,
    A: Ord,
    G: Ord,
    D: Ord
[src]

pub fn cmp(&self, other: &(A, B, C, D, E, F, G, H)) -> Ordering[src]

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

#[must_use]
fn max(self, other: Self) -> Self
1.21.0[src]

Compares and returns the maximum of two values. Read more

#[must_use]
fn min(self, other: Self) -> Self
1.21.0[src]

Compares and returns the minimum of two values. Read more

#[must_use]
fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]

Restrict a value to a certain interval. Read more

impl<A, B, C, D, E, F, G, H, I, J, K> Ord for (A, B, C, D, E, F, G, H, I, J, K) where
    C: Ord,
    F: Ord,
    K: Ord + ?Sized,
    I: Ord,
    E: Ord,
    H: Ord,
    B: Ord,
    A: Ord,
    J: Ord,
    G: Ord,
    D: Ord
[src]

pub fn cmp(&self, other: &(A, B, C, D, E, F, G, H, I, J, K)) -> Ordering[src]

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

#[must_use]
fn max(self, other: Self) -> Self
1.21.0[src]

Compares and returns the maximum of two values. Read more

#[must_use]
fn min(self, other: Self) -> Self
1.21.0[src]

Compares and returns the minimum of two values. Read more

#[must_use]
fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]

Restrict a value to a certain interval. Read more

impl<A> Ord for (A,) where
    A: Ord + ?Sized
[src]

pub fn cmp(&self, other: &(A,)) -> Ordering[src]

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

#[must_use]
fn max(self, other: Self) -> Self
1.21.0[src]

Compares and returns the maximum of two values. Read more

#[must_use]
fn min(self, other: Self) -> Self
1.21.0[src]

Compares and returns the minimum of two values. Read more

#[must_use]
fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]

Restrict a value to a certain interval. Read more

impl<A, B, C, D, E> Ord for (A, B, C, D, E) where
    C: Ord,
    E: Ord + ?Sized,
    B: Ord,
    A: Ord,
    D: Ord
[src]

pub fn cmp(&self, other: &(A, B, C, D, E)) -> Ordering[src]

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

#[must_use]
fn max(self, other: Self) -> Self
1.21.0[src]

Compares and returns the maximum of two values. Read more

#[must_use]
fn min(self, other: Self) -> Self
1.21.0[src]

Compares and returns the minimum of two values. Read more

#[must_use]
fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]

Restrict a value to a certain interval. Read more

impl<A, B, C, D> Ord for (A, B, C, D) where
    C: Ord,
    B: Ord,
    A: Ord,
    D: Ord + ?Sized
[src]

pub fn cmp(&self, other: &(A, B, C, D)) -> Ordering[src]

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

#[must_use]
fn max(self, other: Self) -> Self
1.21.0[src]

Compares and returns the maximum of two values. Read more

#[must_use]
fn min(self, other: Self) -> Self
1.21.0[src]

Compares and returns the minimum of two values. Read more

#[must_use]
fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]

Restrict a value to a certain interval. Read more

impl<A, B, C, D, E, F, G, H, I> Ord for (A, B, C, D, E, F, G, H, I) where
    C: Ord,
    F: Ord,
    I: Ord + ?Sized,
    E: Ord,
    H: Ord,
    B: Ord,
    A: Ord,
    G: Ord,
    D: Ord
[src]

pub fn cmp(&self, other: &(A, B, C, D, E, F, G, H, I)) -> Ordering[src]

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

#[must_use]
fn max(self, other: Self) -> Self
1.21.0[src]

Compares and returns the maximum of two values. Read more

#[must_use]
fn min(self, other: Self) -> Self
1.21.0[src]

Compares and returns the minimum of two values. Read more

#[must_use]
fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]

Restrict a value to a certain interval. Read more

impl<A, B, C, D, E, F, G, H, I, J, K, L> Ord for (A, B, C, D, E, F, G, H, I, J, K, L) where
    C: Ord,
    F: Ord,
    K: Ord,
    I: Ord,
    E: Ord,
    H: Ord,
    B: Ord,
    A: Ord,
    J: Ord,
    G: Ord,
    D: Ord,
    L: Ord + ?Sized
[src]

pub fn cmp(&self, other: &(A, B, C, D, E, F, G, H, I, J, K, L)) -> Ordering[src]

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

#[must_use]
fn max(self, other: Self) -> Self
1.21.0[src]

Compares and returns the maximum of two values. Read more

#[must_use]
fn min(self, other: Self) -> Self
1.21.0[src]

Compares and returns the minimum of two values. Read more

#[must_use]
fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]

Restrict a value to a certain interval. Read more

impl<A, B, C, D, E, F, G, H, I, J, K, L> PartialEq<(A, B, C, D, E, F, G, H, I, J, K, L)> for (A, B, C, D, E, F, G, H, I, J, K, L) where
    C: PartialEq<C>,
    F: PartialEq<F>,
    K: PartialEq<K>,
    I: PartialEq<I>,
    E: PartialEq<E>,
    H: PartialEq<H>,
    B: PartialEq<B>,
    A: PartialEq<A>,
    J: PartialEq<J>,
    G: PartialEq<G>,
    D: PartialEq<D>,
    L: PartialEq<L> + ?Sized
[src]

pub fn eq(&self, other: &(A, B, C, D, E, F, G, H, I, J, K, L)) -> bool[src]

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

pub fn ne(&self, other: &(A, B, C, D, E, F, G, H, I, J, K, L)) -> bool[src]

This method tests for !=.

impl<A, B, C, D, E, F, G, H, I, J, K> PartialEq<(A, B, C, D, E, F, G, H, I, J, K)> for (A, B, C, D, E, F, G, H, I, J, K) where
    C: PartialEq<C>,
    F: PartialEq<F>,
    K: PartialEq<K> + ?Sized,
    I: PartialEq<I>,
    E: PartialEq<E>,
    H: PartialEq<H>,
    B: PartialEq<B>,
    A: PartialEq<A>,
    J: PartialEq<J>,
    G: PartialEq<G>,
    D: PartialEq<D>, 
[src]

pub fn eq(&self, other: &(A, B, C, D, E, F, G, H, I, J, K)) -> bool[src]

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

pub fn ne(&self, other: &(A, B, C, D, E, F, G, H, I, J, K)) -> bool[src]

This method tests for !=.

impl<A, B, C, D, E, F, G, H, I, J> PartialEq<(A, B, C, D, E, F, G, H, I, J)> for (A, B, C, D, E, F, G, H, I, J) where
    C: PartialEq<C>,
    F: PartialEq<F>,
    I: PartialEq<I>,
    E: PartialEq<E>,
    H: PartialEq<H>,
    B: PartialEq<B>,
    A: PartialEq<A>,
    J: PartialEq<J> + ?Sized,
    G: PartialEq<G>,
    D: PartialEq<D>, 
[src]

pub fn eq(&self, other: &(A, B, C, D, E, F, G, H, I, J)) -> bool[src]

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

pub fn ne(&self, other: &(A, B, C, D, E, F, G, H, I, J)) -> bool[src]

This method tests for !=.

impl<A, B, C, D, E, F, G, H, I> PartialEq<(A, B, C, D, E, F, G, H, I)> for (A, B, C, D, E, F, G, H, I) where
    C: PartialEq<C>,
    F: PartialEq<F>,
    I: PartialEq<I> + ?Sized,
    E: PartialEq<E>,
    H: PartialEq<H>,
    B: PartialEq<B>,
    A: PartialEq<A>,
    G: PartialEq<G>,
    D: PartialEq<D>, 
[src]

pub fn eq(&self, other: &(A, B, C, D, E, F, G, H, I)) -> bool[src]

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

pub fn ne(&self, other: &(A, B, C, D, E, F, G, H, I)) -> bool[src]

This method tests for !=.

impl<A, B, C, D, E, F, G, H> PartialEq<(A, B, C, D, E, F, G, H)> for (A, B, C, D, E, F, G, H) where
    C: PartialEq<C>,
    F: PartialEq<F>,
    E: PartialEq<E>,
    H: PartialEq<H> + ?Sized,
    B: PartialEq<B>,
    A: PartialEq<A>,
    G: PartialEq<G>,
    D: PartialEq<D>, 
[src]

pub fn eq(&self, other: &(A, B, C, D, E, F, G, H)) -> bool[src]

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

pub fn ne(&self, other: &(A, B, C, D, E, F, G, H)) -> bool[src]

This method tests for !=.

impl<A, B, C, D, E, F, G> PartialEq<(A, B, C, D, E, F, G)> for (A, B, C, D, E, F, G) where
    C: PartialEq<C>,
    F: PartialEq<F>,
    E: PartialEq<E>,
    B: PartialEq<B>,
    A: PartialEq<A>,
    G: PartialEq<G> + ?Sized,
    D: PartialEq<D>, 
[src]

pub fn eq(&self, other: &(A, B, C, D, E, F, G)) -> bool[src]

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

pub fn ne(&self, other: &(A, B, C, D, E, F, G)) -> bool[src]

This method tests for !=.

impl<A, B, C, D, E, F> PartialEq<(A, B, C, D, E, F)> for (A, B, C, D, E, F) where
    C: PartialEq<C>,
    F: PartialEq<F> + ?Sized,
    E: PartialEq<E>,
    B: PartialEq<B>,
    A: PartialEq<A>,
    D: PartialEq<D>, 
[src]

pub fn eq(&self, other: &(A, B, C, D, E, F)) -> bool[src]

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

pub fn ne(&self, other: &(A, B, C, D, E, F)) -> bool[src]

This method tests for !=.

impl<A, B, C, D, E> PartialEq<(A, B, C, D, E)> for (A, B, C, D, E) where
    C: PartialEq<C>,
    E: PartialEq<E> + ?Sized,
    B: PartialEq<B>,
    A: PartialEq<A>,
    D: PartialEq<D>, 
[src]

pub fn eq(&self, other: &(A, B, C, D, E)) -> bool[src]

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

pub fn ne(&self, other: &(A, B, C, D, E)) -> bool[src]

This method tests for !=.

impl<A, B, C, D> PartialEq<(A, B, C, D)> for (A, B, C, D) where
    C: PartialEq<C>,
    B: PartialEq<B>,
    A: PartialEq<A>,
    D: PartialEq<D> + ?Sized
[src]

pub fn eq(&self, other: &(A, B, C, D)) -> bool[src]

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

pub fn ne(&self, other: &(A, B, C, D)) -> bool[src]

This method tests for !=.

impl<A, B, C> PartialEq<(A, B, C)> for (A, B, C) where
    C: PartialEq<C> + ?Sized,
    B: PartialEq<B>,
    A: PartialEq<A>, 
[src]

pub fn eq(&self, other: &(A, B, C)) -> bool[src]

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

pub fn ne(&self, other: &(A, B, C)) -> bool[src]

This method tests for !=.

impl<A, B> PartialEq<(A, B)> for (A, B) where
    B: PartialEq<B> + ?Sized,
    A: PartialEq<A>, 
[src]

pub fn eq(&self, other: &(A, B)) -> bool[src]

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

pub fn ne(&self, other: &(A, B)) -> bool[src]

This method tests for !=.

impl<A> PartialEq<(A,)> for (A,) where
    A: PartialEq<A> + ?Sized
[src]

pub fn eq(&self, other: &(A,)) -> bool[src]

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

pub fn ne(&self, other: &(A,)) -> bool[src]

This method tests for !=.

impl<A, B, C, D, E, F, G, H, I, J, K, L> PartialOrd<(A, B, C, D, E, F, G, H, I, J, K, L)> for (A, B, C, D, E, F, G, H, I, J, K, L) where
    C: PartialOrd<C> + PartialEq<C>,
    F: PartialOrd<F> + PartialEq<F>,
    K: PartialOrd<K> + PartialEq<K>,
    I: PartialOrd<I> + PartialEq<I>,
    E: PartialOrd<E> + PartialEq<E>,
    H: PartialOrd<H> + PartialEq<H>,
    B: PartialOrd<B> + PartialEq<B>,
    A: PartialOrd<A> + PartialEq<A>,
    J: PartialOrd<J> + PartialEq<J>,
    G: PartialOrd<G> + PartialEq<G>,
    D: PartialOrd<D> + PartialEq<D>,
    L: PartialOrd<L> + PartialEq<L> + ?Sized
[src]

pub fn partial_cmp(
    &self,
    other: &(A, B, C, D, E, F, G, H, I, J, K, L)
) -> Option<Ordering>
[src]

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

pub fn lt(&self, other: &(A, B, C, D, E, F, G, H, I, J, K, L)) -> bool[src]

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

pub fn le(&self, other: &(A, B, C, D, E, F, G, H, I, J, K, L)) -> bool[src]

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

pub fn ge(&self, other: &(A, B, C, D, E, F, G, H, I, J, K, L)) -> bool[src]

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

pub fn gt(&self, other: &(A, B, C, D, E, F, G, H, I, J, K, L)) -> bool[src]

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

impl<A, B, C, D, E, F, G, H, I, J, K> PartialOrd<(A, B, C, D, E, F, G, H, I, J, K)> for (A, B, C, D, E, F, G, H, I, J, K) where
    C: PartialOrd<C> + PartialEq<C>,
    F: PartialOrd<F> + PartialEq<F>,
    K: PartialOrd<K> + PartialEq<K> + ?Sized,
    I: PartialOrd<I> + PartialEq<I>,
    E: PartialOrd<E> + PartialEq<E>,
    H: PartialOrd<H> + PartialEq<H>,
    B: PartialOrd<B> + PartialEq<B>,
    A: PartialOrd<A> + PartialEq<A>,
    J: PartialOrd<J> + PartialEq<J>,
    G: PartialOrd<G> + PartialEq<G>,
    D: PartialOrd<D> + PartialEq<D>, 
[src]

pub fn partial_cmp(
    &self,
    other: &(A, B, C, D, E, F, G, H, I, J, K)
) -> Option<Ordering>
[src]

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

pub fn lt(&self, other: &(A, B, C, D, E, F, G, H, I, J, K)) -> bool[src]

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

pub fn le(&self, other: &(A, B, C, D, E, F, G, H, I, J, K)) -> bool[src]

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

pub fn ge(&self, other: &(A, B, C, D, E, F, G, H, I, J, K)) -> bool[src]

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

pub fn gt(&self, other: &(A, B, C, D, E, F, G, H, I, J, K)) -> bool[src]

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

impl<A, B, C, D, E, F, G, H, I, J> PartialOrd<(A, B, C, D, E, F, G, H, I, J)> for (A, B, C, D, E, F, G, H, I, J) where
    C: PartialOrd<C> + PartialEq<C>,
    F: PartialOrd<F> + PartialEq<F>,
    I: PartialOrd<I> + PartialEq<I>,
    E: PartialOrd<E> + PartialEq<E>,
    H: PartialOrd<H> + PartialEq<H>,
    B: PartialOrd<B> + PartialEq<B>,
    A: PartialOrd<A> + PartialEq<A>,
    J: PartialOrd<J> + PartialEq<J> + ?Sized,
    G: PartialOrd<G> + PartialEq<G>,
    D: PartialOrd<D> + PartialEq<D>, 
[src]

pub fn partial_cmp(
    &self,
    other: &(A, B, C, D, E, F, G, H, I, J)
) -> Option<Ordering>
[src]

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

pub fn lt(&self, other: &(A, B, C, D, E, F, G, H, I, J)) -> bool[src]

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

pub fn le(&self, other: &(A, B, C, D, E, F, G, H, I, J)) -> bool[src]

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

pub fn ge(&self, other: &(A, B, C, D, E, F, G, H, I, J)) -> bool[src]

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

pub fn gt(&self, other: &(A, B, C, D, E, F, G, H, I, J)) -> bool[src]

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

impl<A, B, C, D, E, F, G, H, I> PartialOrd<(A, B, C, D, E, F, G, H, I)> for (A, B, C, D, E, F, G, H, I) where
    C: PartialOrd<C> + PartialEq<C>,
    F: PartialOrd<F> + PartialEq<F>,
    I: PartialOrd<I> + PartialEq<I> + ?Sized,
    E: PartialOrd<E> + PartialEq<E>,
    H: PartialOrd<H> + PartialEq<H>,
    B: PartialOrd<B> + PartialEq<B>,
    A: PartialOrd<A> + PartialEq<A>,
    G: PartialOrd<G> + PartialEq<G>,
    D: PartialOrd<D> + PartialEq<D>, 
[src]

pub fn partial_cmp(
    &self,
    other: &(A, B, C, D, E, F, G, H, I)
) -> Option<Ordering>
[src]

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

pub fn lt(&self, other: &(A, B, C, D, E, F, G, H, I)) -> bool[src]

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

pub fn le(&self, other: &(A, B, C, D, E, F, G, H, I)) -> bool[src]

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

pub fn ge(&self, other: &(A, B, C, D, E, F, G, H, I)) -> bool[src]

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

pub fn gt(&self, other: &(A, B, C, D, E, F, G, H, I)) -> bool[src]

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

impl<A, B, C, D, E, F, G, H> PartialOrd<(A, B, C, D, E, F, G, H)> for (A, B, C, D, E, F, G, H) where
    C: PartialOrd<C> + PartialEq<C>,
    F: PartialOrd<F> + PartialEq<F>,
    E: PartialOrd<E> + PartialEq<E>,
    H: PartialOrd<H> + PartialEq<H> + ?Sized,
    B: PartialOrd<B> + PartialEq<B>,
    A: PartialOrd<A> + PartialEq<A>,
    G: PartialOrd<G> + PartialEq<G>,
    D: PartialOrd<D> + PartialEq<D>, 
[src]

pub fn partial_cmp(&self, other: &(A, B, C, D, E, F, G, H)) -> Option<Ordering>[src]

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

pub fn lt(&self, other: &(A, B, C, D, E, F, G, H)) -> bool[src]

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

pub fn le(&self, other: &(A, B, C, D, E, F, G, H)) -> bool[src]

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

pub fn ge(&self, other: &(A, B, C, D, E, F, G, H)) -> bool[src]

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

pub fn gt(&self, other: &(A, B, C, D, E, F, G, H)) -> bool[src]

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

impl<A, B, C, D, E, F, G> PartialOrd<(A, B, C, D, E, F, G)> for (A, B, C, D, E, F, G) where
    C: PartialOrd<C> + PartialEq<C>,
    F: PartialOrd<F> + PartialEq<F>,
    E: PartialOrd<E> + PartialEq<E>,
    B: PartialOrd<B> + PartialEq<B>,
    A: PartialOrd<A> + PartialEq<A>,
    G: PartialOrd<G> + PartialEq<G> + ?Sized,
    D: PartialOrd<D> + PartialEq<D>, 
[src]

pub fn partial_cmp(&self, other: &(A, B, C, D, E, F, G)) -> Option<Ordering>[src]

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

pub fn lt(&self, other: &(A, B, C, D, E, F, G)) -> bool[src]

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

pub fn le(&self, other: &(A, B, C, D, E, F, G)) -> bool[src]

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

pub fn ge(&self, other: &(A, B, C, D, E, F, G)) -> bool[src]

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

pub fn gt(&self, other: &(A, B, C, D, E, F, G)) -> bool[src]

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

impl<A, B, C, D, E, F> PartialOrd<(A, B, C, D, E, F)> for (A, B, C, D, E, F) where
    C: PartialOrd<C> + PartialEq<C>,
    F: PartialOrd<F> + PartialEq<F> + ?Sized,
    E: PartialOrd<E> + PartialEq<E>,
    B: PartialOrd<B> + PartialEq<B>,
    A: PartialOrd<A> + PartialEq<A>,
    D: PartialOrd<D> + PartialEq<D>, 
[src]

pub fn partial_cmp(&self, other: &(A, B, C, D, E, F)) -> Option<Ordering>[src]

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

pub fn lt(&self, other: &(A, B, C, D, E, F)) -> bool[src]

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

pub fn le(&self, other: &(A, B, C, D, E, F)) -> bool[src]

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

pub fn ge(&self, other: &(A, B, C, D, E, F)) -> bool[src]

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

pub fn gt(&self, other: &(A, B, C, D, E, F)) -> bool[src]

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

impl<A, B, C, D, E> PartialOrd<(A, B, C, D, E)> for (A, B, C, D, E) where
    C: PartialOrd<C> + PartialEq<C>,
    E: PartialOrd<E> + PartialEq<E> + ?Sized,
    B: PartialOrd<B> + PartialEq<B>,
    A: PartialOrd<A> + PartialEq<A>,
    D: PartialOrd<D> + PartialEq<D>, 
[src]

pub fn partial_cmp(&self, other: &(A, B, C, D, E)) -> Option<Ordering>[src]

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

pub fn lt(&self, other: &(A, B, C, D, E)) -> bool[src]

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

pub fn le(&self, other: &(A, B, C, D, E)) -> bool[src]

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

pub fn ge(&self, other: &(A, B, C, D, E)) -> bool[src]

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

pub fn gt(&self, other: &(A, B, C, D, E)) -> bool[src]

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

impl<A, B, C, D> PartialOrd<(A, B, C, D)> for (A, B, C, D) where
    C: PartialOrd<C> + PartialEq<C>,
    B: PartialOrd<B> + PartialEq<B>,
    A: PartialOrd<A> + PartialEq<A>,
    D: PartialOrd<D> + PartialEq<D> + ?Sized
[src]

pub fn partial_cmp(&self, other: &(A, B, C, D)) -> Option<Ordering>[src]

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

pub fn lt(&self, other: &(A, B, C, D)) -> bool[src]

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

pub fn le(&self, other: &(A, B, C, D)) -> bool[src]

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

pub fn ge(&self, other: &(A, B, C, D)) -> bool[src]

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

pub fn gt(&self, other: &(A, B, C, D)) -> bool[src]

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

impl<A, B, C> PartialOrd<(A, B, C)> for (A, B, C) where
    C: PartialOrd<C> + PartialEq<C> + ?Sized,
    B: PartialOrd<B> + PartialEq<B>,
    A: PartialOrd<A> + PartialEq<A>, 
[src]

pub fn partial_cmp(&self, other: &(A, B, C)) -> Option<Ordering>[src]

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

pub fn lt(&self, other: &(A, B, C)) -> bool[src]

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

pub fn le(&self, other: &(A, B, C)) -> bool[src]

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

pub fn ge(&self, other: &(A, B, C)) -> bool[src]

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

pub fn gt(&self, other: &(A, B, C)) -> bool[src]

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

impl<A, B> PartialOrd<(A, B)> for (A, B) where
    B: PartialOrd<B> + PartialEq<B> + ?Sized,
    A: PartialOrd<A> + PartialEq<A>, 
[src]

pub fn partial_cmp(&self, other: &(A, B)) -> Option<Ordering>[src]

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

pub fn lt(&self, other: &(A, B)) -> bool[src]

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

pub fn le(&self, other: &(A, B)) -> bool[src]

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

pub fn ge(&self, other: &(A, B)) -> bool[src]

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

pub fn gt(&self, other: &(A, B)) -> bool[src]

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

impl<A> PartialOrd<(A,)> for (A,) where
    A: PartialOrd<A> + PartialEq<A> + ?Sized
[src]

pub fn partial_cmp(&self, other: &(A,)) -> Option<Ordering>[src]

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

pub fn lt(&self, other: &(A,)) -> bool[src]

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

pub fn le(&self, other: &(A,)) -> bool[src]

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

pub fn ge(&self, other: &(A,)) -> bool[src]

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

pub fn gt(&self, other: &(A,)) -> bool[src]

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

impl<'a, T> RangeBounds<T> for (Bound<&'a T>, Bound<&'a T>) where
    T: 'a + ?Sized
1.28.0[src]

pub fn start_bound(&self) -> Bound<&T>[src]

Start index bound. Read more

pub fn end_bound(&self) -> Bound<&T>[src]

End index bound. Read more

fn contains<U>(&self, item: &U) -> bool where
    T: PartialOrd<U>,
    U: PartialOrd<T> + ?Sized
1.35.0[src]

Returns true if item is contained in the range. Read more

impl<T> RangeBounds<T> for (Bound<T>, Bound<T>)1.28.0[src]

pub fn start_bound(&self) -> Bound<&T>[src]

Start index bound. Read more

pub fn end_bound(&self) -> Bound<&T>[src]

End index bound. Read more

fn contains<U>(&self, item: &U) -> bool where
    T: PartialOrd<U>,
    U: PartialOrd<T> + ?Sized
1.35.0[src]

Returns true if item is contained in the range. Read more

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

type Output = [T]

The output type returned by methods.

pub fn get(
    self,
    slice: &[T]
) -> Option<&<(Bound<usize>, Bound<usize>) as SliceIndex<[T]>>::Output>
[src]

🔬 This is a nightly-only experimental API. (slice_index_methods)

Returns a shared reference to the output at this location, if in bounds. Read more

pub fn get_mut(
    self,
    slice: &mut [T]
) -> Option<&mut <(Bound<usize>, Bound<usize>) as SliceIndex<[T]>>::Output>
[src]

🔬 This is a nightly-only experimental API. (slice_index_methods)

Returns a mutable reference to the output at this location, if in bounds. Read more

pub unsafe fn get_unchecked(
    self,
    slice: *const [T]
) -> *const <(Bound<usize>, Bound<usize>) as SliceIndex<[T]>>::Output
[src]

🔬 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. Read more

pub unsafe fn get_unchecked_mut(
    self,
    slice: *mut [T]
) -> *mut <(Bound<usize>, Bound<usize>) as SliceIndex<[T]>>::Output
[src]

🔬 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. Read more

pub fn index(
    self,
    slice: &[T]
) -> &<(Bound<usize>, Bound<usize>) as SliceIndex<[T]>>::Output
[src]

🔬 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. Read more

pub fn index_mut(
    self,
    slice: &mut [T]
) -> &mut <(Bound<usize>, Bound<usize>) as SliceIndex<[T]>>::Output
[src]

🔬 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. Read more

impl ToSocketAddrs for (IpAddr, u16)[src]

type Iter = IntoIter<SocketAddr>

Returned iterator over socket addresses which this type may correspond to. Read more

fn to_socket_addrs(&self) -> Result<IntoIter<SocketAddr>>[src]

Converts this object to an iterator of resolved SocketAddrs. Read more

impl ToSocketAddrs for (Ipv4Addr, u16)[src]

type Iter = IntoIter<SocketAddr>

Returned iterator over socket addresses which this type may correspond to. Read more

fn to_socket_addrs(&self) -> Result<IntoIter<SocketAddr>>[src]

Converts this object to an iterator of resolved SocketAddrs. Read more

impl ToSocketAddrs for (Ipv6Addr, u16)[src]

type Iter = IntoIter<SocketAddr>

Returned iterator over socket addresses which this type may correspond to. Read more

fn to_socket_addrs(&self) -> Result<IntoIter<SocketAddr>>[src]

Converts this object to an iterator of resolved SocketAddrs. Read more

impl ToSocketAddrs for (&str, u16)[src]

type Iter = IntoIter<SocketAddr>

Returned iterator over socket addresses which this type may correspond to. Read more

fn to_socket_addrs(&self) -> Result<IntoIter<SocketAddr>>[src]

Converts this object to an iterator of resolved SocketAddrs. Read more

impl ToSocketAddrs for (String, u16)1.46.0[src]

type Iter = IntoIter<SocketAddr>

Returned iterator over socket addresses which this type may correspond to. Read more

fn to_socket_addrs(&self) -> Result<IntoIter<SocketAddr>>[src]

Converts this object to an iterator of resolved SocketAddrs. Read more

impl<A, B, C, D, E, F, G, H, I> Eq for (A, B, C, D, E, F, G, H, I) where
    C: Eq,
    F: Eq,
    I: Eq + ?Sized,
    E: Eq,
    H: Eq,
    B: Eq,
    A: Eq,
    G: Eq,
    D: Eq
[src]

impl<A, B> Eq for (A, B) where
    B: Eq + ?Sized,
    A: Eq
[src]

impl<A, B, C, D, E, F, G, H, I, J, K, L> Eq for (A, B, C, D, E, F, G, H, I, J, K, L) where
    C: Eq,
    F: Eq,
    K: Eq,
    I: Eq,
    E: Eq,
    H: Eq,
    B: Eq,
    A: Eq,
    J: Eq,
    G: Eq,
    D: Eq,
    L: Eq + ?Sized
[src]

impl<A, B, C, D, E, F, G> Eq for (A, B, C, D, E, F, G) where
    C: Eq,
    F: Eq,
    E: Eq,
    B: Eq,
    A: Eq,
    G: Eq + ?Sized,
    D: Eq
[src]

impl<A, B, C, D, E, F, G, H> Eq for (A, B, C, D, E, F, G, H) where
    C: Eq,
    F: Eq,
    E: Eq,
    H: Eq + ?Sized,
    B: Eq,
    A: Eq,
    G: Eq,
    D: Eq
[src]

impl<A, B, C, D, E, F> Eq for (A, B, C, D, E, F) where
    C: Eq,
    F: Eq + ?Sized,
    E: Eq,
    B: Eq,
    A: Eq,
    D: Eq
[src]

impl<A, B, C, D, E, F, G, H, I, J, K> Eq for (A, B, C, D, E, F, G, H, I, J, K) where
    C: Eq,
    F: Eq,
    K: Eq + ?Sized,
    I: Eq,
    E: Eq,
    H: Eq,
    B: Eq,
    A: Eq,
    J: Eq,
    G: Eq,
    D: Eq
[src]

impl<A, B, C, D, E, F, G, H, I, J> Eq for (A, B, C, D, E, F, G, H, I, J) where
    C: Eq,
    F: Eq,
    I: Eq,
    E: Eq,
    H: Eq,
    B: Eq,
    A: Eq,
    J: Eq + ?Sized,
    G: Eq,
    D: Eq
[src]

impl<A, B, C> Eq for (A, B, C) where
    C: Eq + ?Sized,
    B: Eq,
    A: Eq
[src]

impl<A> Eq for (A,) where
    A: Eq + ?Sized
[src]

impl<A, B, C, D, E> Eq for (A, B, C, D, E) where
    C: Eq,
    E: Eq + ?Sized,
    B: Eq,
    A: Eq,
    D: Eq
[src]

impl<A, B, C, D> Eq for (A, B, C, D) where
    C: Eq,
    B: Eq,
    A: Eq,
    D: Eq + ?Sized
[src]