Primitive Type tuple [-] [+]

Operations on tuples

To access the N-th element of a tuple one can use N itself as a field of the tuple.

Indexing starts from zero, so 0 returns first value, 1 returns second value, and so on. In general, a tuple with S elements provides aforementioned fields from 0 to S-1.

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

Examples

Accessing elements of a tuple at specified indices:

fn main() { let x = ("colorless", "green", "ideas", "sleep", "furiously"); assert_eq!(x.3, "sleep"); let v = (3, 3); let u = (1, -5); assert_eq!(v.0 * u.0 + v.1 * u.1, -12); }
let x = ("colorless",  "green", "ideas", "sleep", "furiously");
assert_eq!(x.3, "sleep");

let v = (3, 3);
let u = (1, -5);
assert_eq!(v.0 * u.0 + v.1 * u.1, -12);

Using traits implemented for tuples:

fn main() { use std::default::Default; let a = (1, 2); let b = (3, 4); assert!(a != b); let c = b.clone(); assert!(b == c); let d : (u32, f32) = Default::default(); assert_eq!(d, (0u32, 0.0f32)); }
use std::default::Default;

let a = (1, 2);
let b = (3, 4);
assert!(a != b);

let c = b.clone();
assert!(b == c);

let d : (u32, f32) = Default::default();
assert_eq!(d, (0u32, 0.0f32));

Trait Implementations

impl PartialEq<()> for ()

fn eq(&self, _other: &()) -> bool

fn ne(&self, _other: &()) -> bool

fn ne(&self, &()) -> bool

impl Eq for ()

fn assert_receiver_is_total_eq(&self)

impl PartialOrd<()> for ()

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

fn lt(&self, &()) -> bool

fn le(&self, &()) -> bool

fn gt(&self, &()) -> bool

fn ge(&self, &()) -> bool

impl Ord for ()

fn cmp(&self, _other: &()) -> Ordering

impl Clone for ()

fn clone(&self)

Return a deep copy of the value.

fn clone_from(&mut self, &())

impl Default for ()

fn default()

impl Hash for ()

fn hash<H>(&self, _state: &mut H) where H: Hasher

fn hash_slice<H>(&[()], &mut H) where H: Hasher, (): Sized

impl<A> Hash for (A,) where A: Hash

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

fn hash_slice<H>(&[(A,)], &mut H) where H: Hasher, (A,): Sized

impl<A, B> Hash for (A, B) where A: Hash, B: Hash

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

fn hash_slice<H>(&[(A, B)], &mut H) where H: Hasher, (A, B): Sized

impl<A, B, C> Hash for (A, B, C) where A: Hash, B: Hash, C: Hash

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

fn hash_slice<H>(&[(A, B, C)], &mut H) where H: Hasher, (A, B, C): Sized

impl<A, B, C, D> Hash for (A, B, C, D) where A: Hash, B: Hash, C: Hash, D: Hash

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

fn hash_slice<H>(&[(A, B, C, D)], &mut H) where H: Hasher, (A, B, C, D): Sized

impl<A, B, C, D, E> Hash for (A, B, C, D, E) where A: Hash, B: Hash, C: Hash, D: Hash, E: Hash

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

fn hash_slice<H>(&[(A, B, C, D, E)], &mut H) where H: Hasher, (A, B, C, D, E): Sized

impl<A, B, C, D, E, F> Hash for (A, B, C, D, E, F) where A: Hash, B: Hash, C: Hash, D: Hash, E: Hash, F: Hash

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

fn hash_slice<H>(&[(A, B, C, D, E, F)], &mut H) where H: Hasher, (A, B, C, D, E, F): Sized

impl<A, B, C, D, E, F, G> Hash for (A, B, C, D, E, F, G) where A: Hash, B: Hash, C: Hash, D: Hash, E: Hash, F: Hash, G: Hash

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

fn hash_slice<H>(&[(A, B, C, D, E, F, G)], &mut H) where H: Hasher, (A, B, C, D, E, F, G): Sized

impl<A, B, C, D, E, F, G, H> Hash for (A, B, C, D, E, F, G, H) where A: Hash, B: Hash, C: Hash, D: Hash, E: Hash, F: Hash, G: Hash, H: Hash

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

fn hash_slice<H>(&[(A, B, C, D, E, F, G, H)], &mut H) where H: Hasher, (A, B, C, D, E, F, G, H): Sized

impl<A, B, C, D, E, F, G, H, I> Hash for (A, B, C, D, E, F, G, H, I) where A: Hash, B: Hash, C: Hash, D: Hash, E: Hash, F: Hash, G: Hash, H: Hash, I: Hash

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

fn hash_slice<H>(&[(A, B, C, D, E, F, G, H, I)], &mut H) where H: Hasher, (A, B, C, D, E, F, G, H, I): Sized

impl<A, B, C, D, E, F, G, H, I, J> Hash for (A, B, C, D, E, F, G, H, I, J) where A: Hash, B: Hash, C: Hash, D: Hash, E: Hash, F: Hash, G: Hash, H: Hash, I: Hash, J: Hash

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

fn hash_slice<H>(&[(A, B, C, D, E, F, G, H, I, J)], &mut H) where H: Hasher, (A, B, C, D, E, F, G, H, I, J): Sized

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 A: Hash, B: Hash, C: Hash, D: Hash, E: Hash, F: Hash, G: Hash, H: Hash, I: Hash, J: Hash, K: Hash

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

fn hash_slice<H>(&[(A, B, C, D, E, F, G, H, I, J, K)], &mut H) where H: Hasher, (A, B, C, D, E, F, G, H, I, J, K): Sized

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 A: Hash, B: Hash, C: Hash, D: Hash, E: Hash, F: Hash, G: Hash, H: Hash, I: Hash, J: Hash, K: Hash, L: Hash

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

fn hash_slice<H>(&[(A, B, C, D, E, F, G, H, I, J, K, L)], &mut H) where H: Hasher, (A, B, C, D, E, F, G, H, I, J, K, L): Sized

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

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

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

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

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

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

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

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

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

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

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

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

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

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

impl<T7, T8, T9, T10, T11> Debug for (T7, T8, T9, T10, T11) where T7: Debug, T8: Debug, T9: Debug, T10: Debug, T11: Debug

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

impl<T8, T9, T10, T11> Debug for (T8, T9, T10, T11) where T8: Debug, T9: Debug, T10: Debug, T11: Debug

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

impl<T9, T10, T11> Debug for (T9, T10, T11) where T9: Debug, T10: Debug, T11: Debug

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

impl<T10, T11> Debug for (T10, T11) where T10: Debug, T11: Debug

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

impl<T11> Debug for (T11,) where T11: Debug

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

impl Debug for ()

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

impl<A> Clone for (A,) where A: Clone

fn clone(&self) -> (A,)

fn clone_from(&mut self, &(A,))

impl<A> PartialEq<(A,)> for (A,) where A: PartialEq<A>

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

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

fn ne(&self, &(A,)) -> bool

impl<A> Eq for (A,) where A: Eq

fn assert_receiver_is_total_eq(&self)

impl<A> PartialOrd<(A,)> for (A,) where A: PartialEq<A>, A: PartialOrd<A>

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

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

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

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

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

fn lt(&self, &(A,)) -> bool

fn le(&self, &(A,)) -> bool

fn gt(&self, &(A,)) -> bool

fn ge(&self, &(A,)) -> bool

impl<A> Ord for (A,) where A: Ord

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

impl<A> Default for (A,) where A: Default

fn default() -> (A,)

impl<A, B> Clone for (A, B) where A: Clone, B: Clone

fn clone(&self) -> (A, B)

fn clone_from(&mut self, &(A, B))

impl<A, B> PartialEq<(A, B)> for (A, B) where A: PartialEq<A>, B: PartialEq<B>

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

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

fn ne(&self, &(A, B)) -> bool

impl<A, B> Eq for (A, B) where A: Eq, B: Eq

fn assert_receiver_is_total_eq(&self)

impl<A, B> PartialOrd<(A, B)> for (A, B) where A: PartialEq<A>, A: PartialOrd<A>, B: PartialEq<B>, B: PartialOrd<B>

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

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

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

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

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

fn lt(&self, &(A, B)) -> bool

fn le(&self, &(A, B)) -> bool

fn gt(&self, &(A, B)) -> bool

fn ge(&self, &(A, B)) -> bool

impl<A, B> Ord for (A, B) where A: Ord, B: Ord

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

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

fn default() -> (A, B)

impl<A, B, C> Clone for (A, B, C) where A: Clone, B: Clone, C: Clone

fn clone(&self) -> (A, B, C)

fn clone_from(&mut self, &(A, B, C))

impl<A, B, C> PartialEq<(A, B, C)> for (A, B, C) where A: PartialEq<A>, B: PartialEq<B>, C: PartialEq<C>

fn eq(&self, other: &(A, B, C)) -> bool

fn ne(&self, other: &(A, B, C)) -> bool

fn ne(&self, &(A, B, C)) -> bool

impl<A, B, C> Eq for (A, B, C) where A: Eq, B: Eq, C: Eq

fn assert_receiver_is_total_eq(&self)

impl<A, B, C> PartialOrd<(A, B, C)> for (A, B, C) where A: PartialEq<A>, A: PartialOrd<A>, B: PartialEq<B>, B: PartialOrd<B>, C: PartialEq<C>, C: PartialOrd<C>

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

fn lt(&self, other: &(A, B, C)) -> bool

fn le(&self, other: &(A, B, C)) -> bool

fn ge(&self, other: &(A, B, C)) -> bool

fn gt(&self, other: &(A, B, C)) -> bool

fn lt(&self, &(A, B, C)) -> bool

fn le(&self, &(A, B, C)) -> bool

fn gt(&self, &(A, B, C)) -> bool

fn ge(&self, &(A, B, C)) -> bool

impl<A, B, C> Ord for (A, B, C) where A: Ord, B: Ord, C: Ord

fn cmp(&self, other: &(A, B, C)) -> Ordering

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

fn default() -> (A, B, C)

impl<A, B, C, D> Clone for (A, B, C, D) where A: Clone, B: Clone, C: Clone, D: Clone

fn clone(&self) -> (A, B, C, D)

fn clone_from(&mut self, &(A, B, C, D))

impl<A, B, C, D> PartialEq<(A, B, C, D)> for (A, B, C, D) where A: PartialEq<A>, B: PartialEq<B>, C: PartialEq<C>, D: PartialEq<D>

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

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

fn ne(&self, &(A, B, C, D)) -> bool

impl<A, B, C, D> Eq for (A, B, C, D) where A: Eq, B: Eq, C: Eq, D: Eq

fn assert_receiver_is_total_eq(&self)

impl<A, B, C, D> PartialOrd<(A, B, C, D)> for (A, B, C, D) where A: PartialEq<A>, A: PartialOrd<A>, B: PartialEq<B>, B: PartialOrd<B>, C: PartialEq<C>, C: PartialOrd<C>, D: PartialEq<D>, D: PartialOrd<D>

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

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

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

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

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

fn lt(&self, &(A, B, C, D)) -> bool

fn le(&self, &(A, B, C, D)) -> bool

fn gt(&self, &(A, B, C, D)) -> bool

fn ge(&self, &(A, B, C, D)) -> bool

impl<A, B, C, D> Ord for (A, B, C, D) where A: Ord, B: Ord, C: Ord, D: Ord

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

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

fn default() -> (A, B, C, D)

impl<A, B, C, D, E> Clone for (A, B, C, D, E) where A: Clone, B: Clone, C: Clone, D: Clone, E: Clone

fn clone(&self) -> (A, B, C, D, E)

fn clone_from(&mut self, &(A, B, C, D, E))

impl<A, B, C, D, E> PartialEq<(A, B, C, D, E)> for (A, B, C, D, E) where A: PartialEq<A>, B: PartialEq<B>, C: PartialEq<C>, D: PartialEq<D>, E: PartialEq<E>

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

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

fn ne(&self, &(A, B, C, D, E)) -> bool

impl<A, B, C, D, E> Eq for (A, B, C, D, E) where A: Eq, B: Eq, C: Eq, D: Eq, E: Eq

fn assert_receiver_is_total_eq(&self)

impl<A, B, C, D, E> PartialOrd<(A, B, C, D, E)> for (A, B, C, D, E) where A: PartialEq<A>, A: PartialOrd<A>, B: PartialEq<B>, B: PartialOrd<B>, C: PartialEq<C>, C: PartialOrd<C>, D: PartialEq<D>, D: PartialOrd<D>, E: PartialEq<E>, E: PartialOrd<E>

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

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

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

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

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

fn lt(&self, &(A, B, C, D, E)) -> bool

fn le(&self, &(A, B, C, D, E)) -> bool

fn gt(&self, &(A, B, C, D, E)) -> bool

fn ge(&self, &(A, B, C, D, E)) -> bool

impl<A, B, C, D, E> Ord for (A, B, C, D, E) where A: Ord, B: Ord, C: Ord, D: Ord, E: Ord

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

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

fn default() -> (A, B, C, D, E)

impl<A, B, C, D, E, F> Clone for (A, B, C, D, E, F) where A: Clone, B: Clone, C: Clone, D: Clone, E: Clone, F: Clone

fn clone(&self) -> (A, B, C, D, E, F)

fn clone_from(&mut self, &(A, B, C, D, E, F))

impl<A, B, C, D, E, F> PartialEq<(A, B, C, D, E, F)> for (A, B, C, D, E, F) where A: PartialEq<A>, B: PartialEq<B>, C: PartialEq<C>, D: PartialEq<D>, E: PartialEq<E>, F: PartialEq<F>

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

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

fn ne(&self, &(A, B, C, D, E, F)) -> bool

impl<A, B, C, D, E, F> Eq for (A, B, C, D, E, F) where A: Eq, B: Eq, C: Eq, D: Eq, E: Eq, F: Eq

fn assert_receiver_is_total_eq(&self)

impl<A, B, C, D, E, F> PartialOrd<(A, B, C, D, E, F)> for (A, B, C, D, E, F) where A: PartialEq<A>, A: PartialOrd<A>, B: PartialEq<B>, B: PartialOrd<B>, C: PartialEq<C>, C: PartialOrd<C>, D: PartialEq<D>, D: PartialOrd<D>, E: PartialEq<E>, E: PartialOrd<E>, F: PartialEq<F>, F: PartialOrd<F>

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

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

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

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

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

fn lt(&self, &(A, B, C, D, E, F)) -> bool

fn le(&self, &(A, B, C, D, E, F)) -> bool

fn gt(&self, &(A, B, C, D, E, F)) -> bool

fn ge(&self, &(A, B, C, D, E, F)) -> bool

impl<A, B, C, D, E, F> Ord for (A, B, C, D, E, F) where A: Ord, B: Ord, C: Ord, D: Ord, E: Ord, F: Ord

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

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

fn default() -> (A, B, C, D, E, F)

impl<A, B, C, D, E, F, G> Clone for (A, B, C, D, E, F, G) where A: Clone, B: Clone, C: Clone, D: Clone, E: Clone, F: Clone, G: Clone

fn clone(&self) -> (A, B, C, D, E, F, G)

fn clone_from(&mut self, &(A, B, C, D, E, F, G))

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 A: PartialEq<A>, B: PartialEq<B>, C: PartialEq<C>, D: PartialEq<D>, E: PartialEq<E>, F: PartialEq<F>, G: PartialEq<G>

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

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

fn ne(&self, &(A, B, C, D, E, F, G)) -> bool

impl<A, B, C, D, E, F, G> Eq for (A, B, C, D, E, F, G) where A: Eq, B: Eq, C: Eq, D: Eq, E: Eq, F: Eq, G: Eq

fn assert_receiver_is_total_eq(&self)

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 A: PartialEq<A>, A: PartialOrd<A>, B: PartialEq<B>, B: PartialOrd<B>, C: PartialEq<C>, C: PartialOrd<C>, D: PartialEq<D>, D: PartialOrd<D>, E: PartialEq<E>, E: PartialOrd<E>, F: PartialEq<F>, F: PartialOrd<F>, G: PartialEq<G>, G: PartialOrd<G>

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

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

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

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

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

fn lt(&self, &(A, B, C, D, E, F, G)) -> bool

fn le(&self, &(A, B, C, D, E, F, G)) -> bool

fn gt(&self, &(A, B, C, D, E, F, G)) -> bool

fn ge(&self, &(A, B, C, D, E, F, G)) -> bool

impl<A, B, C, D, E, F, G> Ord for (A, B, C, D, E, F, G) where A: Ord, B: Ord, C: Ord, D: Ord, E: Ord, F: Ord, G: Ord

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

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

fn default() -> (A, B, C, D, E, F, G)

impl<A, B, C, D, E, F, G, H> Clone for (A, B, C, D, E, F, G, H) where A: Clone, B: Clone, C: Clone, D: Clone, E: Clone, F: Clone, G: Clone, H: Clone

fn clone(&self) -> (A, B, C, D, E, F, G, H)

fn clone_from(&mut self, &(A, B, C, D, E, F, G, H))

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 A: PartialEq<A>, B: PartialEq<B>, C: PartialEq<C>, D: PartialEq<D>, E: PartialEq<E>, F: PartialEq<F>, G: PartialEq<G>, H: PartialEq<H>

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

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

fn ne(&self, &(A, B, C, D, E, F, G, H)) -> bool

impl<A, B, C, D, E, F, G, H> Eq for (A, B, C, D, E, F, G, H) where A: Eq, B: Eq, C: Eq, D: Eq, E: Eq, F: Eq, G: Eq, H: Eq

fn assert_receiver_is_total_eq(&self)

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 A: PartialEq<A>, A: PartialOrd<A>, B: PartialEq<B>, B: PartialOrd<B>, C: PartialEq<C>, C: PartialOrd<C>, D: PartialEq<D>, D: PartialOrd<D>, E: PartialEq<E>, E: PartialOrd<E>, F: PartialEq<F>, F: PartialOrd<F>, G: PartialEq<G>, G: PartialOrd<G>, H: PartialEq<H>, H: PartialOrd<H>

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

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

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

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

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

fn lt(&self, &(A, B, C, D, E, F, G, H)) -> bool

fn le(&self, &(A, B, C, D, E, F, G, H)) -> bool

fn gt(&self, &(A, B, C, D, E, F, G, H)) -> bool

fn ge(&self, &(A, B, C, D, E, F, G, H)) -> bool

impl<A, B, C, D, E, F, G, H> Ord for (A, B, C, D, E, F, G, H) where A: Ord, B: Ord, C: Ord, D: Ord, E: Ord, F: Ord, G: Ord, H: Ord

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

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

fn default() -> (A, B, C, D, E, F, G, H)

impl<A, B, C, D, E, F, G, H, I> Clone for (A, B, C, D, E, F, G, H, I) where A: Clone, B: Clone, C: Clone, D: Clone, E: Clone, F: Clone, G: Clone, H: Clone, I: Clone

fn clone(&self) -> (A, B, C, D, E, F, G, H, I)

fn clone_from(&mut self, &(A, B, C, D, E, F, G, H, I))

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 A: PartialEq<A>, B: PartialEq<B>, C: PartialEq<C>, D: PartialEq<D>, E: PartialEq<E>, F: PartialEq<F>, G: PartialEq<G>, H: PartialEq<H>, I: PartialEq<I>

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

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

fn ne(&self, &(A, B, C, D, E, F, G, H, I)) -> bool

impl<A, B, C, D, E, F, G, H, I> Eq for (A, B, C, D, E, F, G, H, I) where A: Eq, B: Eq, C: Eq, D: Eq, E: Eq, F: Eq, G: Eq, H: Eq, I: Eq

fn assert_receiver_is_total_eq(&self)

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 A: PartialEq<A>, A: PartialOrd<A>, B: PartialEq<B>, B: PartialOrd<B>, C: PartialEq<C>, C: PartialOrd<C>, D: PartialEq<D>, D: PartialOrd<D>, E: PartialEq<E>, E: PartialOrd<E>, F: PartialEq<F>, F: PartialOrd<F>, G: PartialEq<G>, G: PartialOrd<G>, H: PartialEq<H>, H: PartialOrd<H>, I: PartialEq<I>, I: PartialOrd<I>

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

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

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

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

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

fn lt(&self, &(A, B, C, D, E, F, G, H, I)) -> bool

fn le(&self, &(A, B, C, D, E, F, G, H, I)) -> bool

fn gt(&self, &(A, B, C, D, E, F, G, H, I)) -> bool

fn ge(&self, &(A, B, C, D, E, F, G, H, I)) -> bool

impl<A, B, C, D, E, F, G, H, I> Ord for (A, B, C, D, E, F, G, H, I) where A: Ord, B: Ord, C: Ord, D: Ord, E: Ord, F: Ord, G: Ord, H: Ord, I: Ord

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

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

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

impl<A, B, C, D, E, F, G, H, I, J> Clone for (A, B, C, D, E, F, G, H, I, J) where A: Clone, B: Clone, C: Clone, D: Clone, E: Clone, F: Clone, G: Clone, H: Clone, I: Clone, J: Clone

fn clone(&self) -> (A, B, C, D, E, F, G, H, I, J)

fn clone_from(&mut self, &(A, B, C, D, E, F, G, H, I, J))

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 A: PartialEq<A>, B: PartialEq<B>, C: PartialEq<C>, D: PartialEq<D>, E: PartialEq<E>, F: PartialEq<F>, G: PartialEq<G>, H: PartialEq<H>, I: PartialEq<I>, J: PartialEq<J>

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

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

fn ne(&self, &(A, B, C, D, E, F, G, H, I, J)) -> bool

impl<A, B, C, D, E, F, G, H, I, J> Eq for (A, B, C, D, E, F, G, H, I, J) where A: Eq, B: Eq, C: Eq, D: Eq, E: Eq, F: Eq, G: Eq, H: Eq, I: Eq, J: Eq

fn assert_receiver_is_total_eq(&self)

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 A: PartialEq<A>, A: PartialOrd<A>, B: PartialEq<B>, B: PartialOrd<B>, C: PartialEq<C>, C: PartialOrd<C>, D: PartialEq<D>, D: PartialOrd<D>, E: PartialEq<E>, E: PartialOrd<E>, F: PartialEq<F>, F: PartialOrd<F>, G: PartialEq<G>, G: PartialOrd<G>, H: PartialEq<H>, H: PartialOrd<H>, I: PartialEq<I>, I: PartialOrd<I>, J: PartialEq<J>, J: PartialOrd<J>

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

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

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

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

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

fn lt(&self, &(A, B, C, D, E, F, G, H, I, J)) -> bool

fn le(&self, &(A, B, C, D, E, F, G, H, I, J)) -> bool

fn gt(&self, &(A, B, C, D, E, F, G, H, I, J)) -> bool

fn ge(&self, &(A, B, C, D, E, F, G, H, I, J)) -> bool

impl<A, B, C, D, E, F, G, H, I, J> Ord for (A, B, C, D, E, F, G, H, I, J) where A: Ord, B: Ord, C: Ord, D: Ord, E: Ord, F: Ord, G: Ord, H: Ord, I: Ord, J: Ord

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

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

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

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

fn clone(&self) -> (A, B, C, D, E, F, G, H, I, J, K)

fn clone_from(&mut self, &(A, B, C, D, E, F, G, H, I, J, K))

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 A: PartialEq<A>, B: PartialEq<B>, C: PartialEq<C>, D: PartialEq<D>, E: PartialEq<E>, F: PartialEq<F>, G: PartialEq<G>, H: PartialEq<H>, I: PartialEq<I>, J: PartialEq<J>, K: PartialEq<K>

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

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

fn ne(&self, &(A, B, C, D, E, F, G, H, I, J, K)) -> bool

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 A: Eq, B: Eq, C: Eq, D: Eq, E: Eq, F: Eq, G: Eq, H: Eq, I: Eq, J: Eq, K: Eq

fn assert_receiver_is_total_eq(&self)

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 A: PartialEq<A>, A: PartialOrd<A>, B: PartialEq<B>, B: PartialOrd<B>, C: PartialEq<C>, C: PartialOrd<C>, D: PartialEq<D>, D: PartialOrd<D>, E: PartialEq<E>, E: PartialOrd<E>, F: PartialEq<F>, F: PartialOrd<F>, G: PartialEq<G>, G: PartialOrd<G>, H: PartialEq<H>, H: PartialOrd<H>, I: PartialEq<I>, I: PartialOrd<I>, J: PartialEq<J>, J: PartialOrd<J>, K: PartialEq<K>, K: PartialOrd<K>

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

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

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

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

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

fn lt(&self, &(A, B, C, D, E, F, G, H, I, J, K)) -> bool

fn le(&self, &(A, B, C, D, E, F, G, H, I, J, K)) -> bool

fn gt(&self, &(A, B, C, D, E, F, G, H, I, J, K)) -> bool

fn ge(&self, &(A, B, C, D, E, F, G, H, I, J, K)) -> bool

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 A: Ord, B: Ord, C: Ord, D: Ord, E: Ord, F: Ord, G: Ord, H: Ord, I: Ord, J: Ord, K: Ord

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

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 A: Default, B: Default, C: Default, D: Default, E: Default, F: Default, G: Default, H: Default, I: Default, J: Default, K: Default

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

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

fn clone(&self) -> (A, B, C, D, E, F, G, H, I, J, K, L)

fn clone_from(&mut self, &(A, B, C, D, E, F, G, H, I, J, K, L))

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 A: PartialEq<A>, B: PartialEq<B>, C: PartialEq<C>, D: PartialEq<D>, E: PartialEq<E>, F: PartialEq<F>, G: PartialEq<G>, H: PartialEq<H>, I: PartialEq<I>, J: PartialEq<J>, K: PartialEq<K>, L: PartialEq<L>

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

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

fn ne(&self, &(A, B, C, D, E, F, G, H, I, J, K, L)) -> bool

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 A: Eq, B: Eq, C: Eq, D: Eq, E: Eq, F: Eq, G: Eq, H: Eq, I: Eq, J: Eq, K: Eq, L: Eq

fn assert_receiver_is_total_eq(&self)

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 A: PartialEq<A>, A: PartialOrd<A>, B: PartialEq<B>, B: PartialOrd<B>, C: PartialEq<C>, C: PartialOrd<C>, D: PartialEq<D>, D: PartialOrd<D>, E: PartialEq<E>, E: PartialOrd<E>, F: PartialEq<F>, F: PartialOrd<F>, G: PartialEq<G>, G: PartialOrd<G>, H: PartialEq<H>, H: PartialOrd<H>, I: PartialEq<I>, I: PartialOrd<I>, J: PartialEq<J>, J: PartialOrd<J>, K: PartialEq<K>, K: PartialOrd<K>, L: PartialEq<L>, L: PartialOrd<L>

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

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

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

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

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

fn lt(&self, &(A, B, C, D, E, F, G, H, I, J, K, L)) -> bool

fn le(&self, &(A, B, C, D, E, F, G, H, I, J, K, L)) -> bool

fn gt(&self, &(A, B, C, D, E, F, G, H, I, J, K, L)) -> bool

fn ge(&self, &(A, B, C, D, E, F, G, H, I, J, K, L)) -> bool

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 A: Ord, B: Ord, C: Ord, D: Ord, E: Ord, F: Ord, G: Ord, H: Ord, I: Ord, J: Ord, K: Ord, L: Ord

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

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 A: Default, B: Default, C: Default, D: Default, E: Default, F: Default, G: Default, H: Default, I: Default, J: Default, K: Default, L: Default

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

impl ToSocketAddr for (IpAddr, u16)

fn to_socket_addr(&self) -> IoResult<SocketAddr>

fn to_socket_addr_all(&self) -> IoResult<Vec<SocketAddr>>

impl<'a> ToSocketAddr for (&'a str, u16)

fn to_socket_addr_all(&self) -> IoResult<Vec<SocketAddr>>

fn to_socket_addr(&self) -> IoResult<SocketAddr>

impl ToSocketAddrs for (IpAddr, u16)

type Iter = IntoIter<SocketAddr>

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

impl<'a> ToSocketAddrs for (&'a str, u16)

type Iter = IntoIter<SocketAddr>

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

impl Rand for ()

fn rand<R>(&mut R) where R: Rng

impl<A> Rand for (A,) where A: Rand

fn rand<R>(_rng: &mut R) -> (A,) where R: Rng

impl<A, B> Rand for (A, B) where A: Rand, B: Rand

fn rand<R>(_rng: &mut R) -> (A, B) where R: Rng

impl<A, B, C> Rand for (A, B, C) where A: Rand, B: Rand, C: Rand

fn rand<R>(_rng: &mut R) -> (A, B, C) where R: Rng

impl<A, B, C, D> Rand for (A, B, C, D) where A: Rand, B: Rand, C: Rand, D: Rand

fn rand<R>(_rng: &mut R) -> (A, B, C, D) where R: Rng

impl<A, B, C, D, E> Rand for (A, B, C, D, E) where A: Rand, B: Rand, C: Rand, D: Rand, E: Rand

fn rand<R>(_rng: &mut R) -> (A, B, C, D, E) where R: Rng

impl<A, B, C, D, E, F> Rand for (A, B, C, D, E, F) where A: Rand, B: Rand, C: Rand, D: Rand, E: Rand, F: Rand

fn rand<R>(_rng: &mut R) -> (A, B, C, D, E, F) where R: Rng

impl<A, B, C, D, E, F, G> Rand for (A, B, C, D, E, F, G) where A: Rand, B: Rand, C: Rand, D: Rand, E: Rand, F: Rand, G: Rand

fn rand<R>(_rng: &mut R) -> (A, B, C, D, E, F, G) where R: Rng

impl<A, B, C, D, E, F, G, H> Rand for (A, B, C, D, E, F, G, H) where A: Rand, B: Rand, C: Rand, D: Rand, E: Rand, F: Rand, G: Rand, H: Rand

fn rand<R>(_rng: &mut R) -> (A, B, C, D, E, F, G, H) where R: Rng

impl<A, B, C, D, E, F, G, H, I> Rand for (A, B, C, D, E, F, G, H, I) where A: Rand, B: Rand, C: Rand, D: Rand, E: Rand, F: Rand, G: Rand, H: Rand, I: Rand

fn rand<R>(_rng: &mut R) -> (A, B, C, D, E, F, G, H, I) where R: Rng

impl<A, B, C, D, E, F, G, H, I, J> Rand for (A, B, C, D, E, F, G, H, I, J) where A: Rand, B: Rand, C: Rand, D: Rand, E: Rand, F: Rand, G: Rand, H: Rand, I: Rand, J: Rand

fn rand<R>(_rng: &mut R) -> (A, B, C, D, E, F, G, H, I, J) where R: Rng

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

fn rand<R>(_rng: &mut R) -> (A, B, C, D, E, F, G, H, I, J, K) where R: Rng

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

fn rand<R>(_rng: &mut R) -> (A, B, C, D, E, F, G, H, I, J, K, L) where R: Rng