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)
RunTuples 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');
RunThe 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");
RunTuples 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);
RunHomogenous tuples can be created from arrays of appropriate length:
let array: [u32; 3] = [1, 2, 3];
let tuple: (u32, u32, u32) = array.into();
RunImplementations§
Trait Implementations§
source§impl<T: Clone> Clone for (T₁, T₂, …, Tₙ)
impl<T: Clone> Clone for (T₁, T₂, …, Tₙ)
This trait is implemented on arbitrary-length tuples.
source§impl<A, Z, Y, X, W, V, U, T> Debug for (A, Z, Y, X, W, V, U, T)where
A: Debug,
Z: Debug,
Y: Debug,
X: Debug,
W: Debug,
V: Debug,
U: Debug,
T: Debug + ?Sized,
impl<A, Z, Y, X, W, V, U, T> Debug for (A, Z, Y, X, W, V, U, T)where A: Debug, Z: Debug, Y: Debug, X: Debug, W: Debug, V: Debug, U: Debug, T: Debug + ?Sized,
source§impl<B, A, Z, Y, X, W, V, U, T> Debug for (B, A, Z, Y, X, W, V, U, T)where
B: Debug,
A: Debug,
Z: Debug,
Y: Debug,
X: Debug,
W: Debug,
V: Debug,
U: Debug,
T: Debug + ?Sized,
impl<B, A, Z, Y, X, W, V, U, T> Debug for (B, A, Z, Y, X, W, V, U, T)where B: Debug, A: Debug, Z: Debug, Y: Debug, X: Debug, W: Debug, V: Debug, U: Debug, T: Debug + ?Sized,
source§impl<C, B, A, Z, Y, X, W, V, U, T> Debug for (C, B, A, Z, Y, X, W, V, U, T)where
C: Debug,
B: Debug,
A: Debug,
Z: Debug,
Y: Debug,
X: Debug,
W: Debug,
V: Debug,
U: Debug,
T: Debug + ?Sized,
impl<C, B, A, Z, Y, X, W, V, U, T> Debug for (C, B, A, Z, Y, X, W, V, U, T)where C: Debug, B: Debug, A: Debug, Z: Debug, Y: Debug, X: Debug, W: Debug, V: Debug, U: Debug, T: Debug + ?Sized,
source§impl<D, C, B, A, Z, Y, X, W, V, U, T> Debug for (D, C, B, A, Z, Y, X, W, V, U, T)where
D: Debug,
C: Debug,
B: Debug,
A: Debug,
Z: Debug,
Y: Debug,
X: Debug,
W: Debug,
V: Debug,
U: Debug,
T: Debug + ?Sized,
impl<D, C, B, A, Z, Y, X, W, V, U, T> Debug for (D, C, B, A, Z, Y, X, W, V, U, T)where D: Debug, C: Debug, B: Debug, A: Debug, Z: Debug, Y: Debug, X: Debug, W: Debug, V: Debug, U: Debug, T: Debug + ?Sized,
source§impl<E, D, C, B, A, Z, Y, X, W, V, U, T> Debug for (E, D, C, B, A, Z, Y, X, W, V, U, T)where
E: Debug,
D: Debug,
C: Debug,
B: Debug,
A: Debug,
Z: Debug,
Y: Debug,
X: Debug,
W: Debug,
V: Debug,
U: Debug,
T: Debug + ?Sized,
impl<E, D, C, B, A, Z, Y, X, W, V, U, T> Debug for (E, D, C, B, A, Z, Y, X, W, V, U, T)where E: Debug, D: Debug, C: Debug, B: Debug, A: Debug, Z: Debug, Y: Debug, X: Debug, W: Debug, V: Debug, U: Debug, T: Debug + ?Sized,
source§impl<T> Debug for (T₁, T₂, …, Tₙ)where
T: Debug + ?Sized,
impl<T> Debug for (T₁, T₂, …, Tₙ)where T: Debug + ?Sized,
This trait is implemented for tuples up to twelve items long.
source§impl<W, V, U, T> Debug for (W, V, U, T)where
W: Debug,
V: Debug,
U: Debug,
T: Debug + ?Sized,
impl<W, V, U, T> Debug for (W, V, U, T)where W: Debug, V: Debug, U: Debug, T: Debug + ?Sized,
source§impl<X, W, V, U, T> Debug for (X, W, V, U, T)where
X: Debug,
W: Debug,
V: Debug,
U: Debug,
T: Debug + ?Sized,
impl<X, W, V, U, T> Debug for (X, W, V, U, T)where X: Debug, W: Debug, V: Debug, U: Debug, T: Debug + ?Sized,
source§impl<Y, X, W, V, U, T> Debug for (Y, X, W, V, U, T)where
Y: Debug,
X: Debug,
W: Debug,
V: Debug,
U: Debug,
T: Debug + ?Sized,
impl<Y, X, W, V, U, T> Debug for (Y, X, W, V, U, T)where Y: Debug, X: Debug, W: Debug, V: Debug, U: Debug, T: Debug + ?Sized,
source§impl<Z, Y, X, W, V, U, T> Debug for (Z, Y, X, W, V, U, T)where
Z: Debug,
Y: Debug,
X: Debug,
W: Debug,
V: Debug,
U: Debug,
T: Debug + ?Sized,
impl<Z, Y, X, W, V, U, T> Debug for (Z, Y, X, W, V, U, T)where Z: Debug, Y: Debug, X: Debug, W: Debug, V: Debug, U: Debug, T: Debug + ?Sized,
source§impl<A, Z, Y, X, W, V, U, T> Default for (A, Z, Y, X, W, V, U, T)where
A: Default,
Z: Default,
Y: Default,
X: Default,
W: Default,
V: Default,
U: Default,
T: Default,
impl<A, Z, Y, X, W, V, U, T> Default for (A, Z, Y, X, W, V, U, T)where A: Default, Z: Default, Y: Default, X: Default, W: Default, V: Default, U: Default, T: Default,
source§fn default() -> (A, Z, Y, X, W, V, U, T)
fn default() -> (A, Z, Y, X, W, V, U, T)
source§impl<B, A, Z, Y, X, W, V, U, T> Default for (B, A, Z, Y, X, W, V, U, T)where
B: Default,
A: Default,
Z: Default,
Y: Default,
X: Default,
W: Default,
V: Default,
U: Default,
T: Default,
impl<B, A, Z, Y, X, W, V, U, T> Default for (B, A, Z, Y, X, W, V, U, T)where B: Default, A: Default, Z: Default, Y: Default, X: Default, W: Default, V: Default, U: Default, T: Default,
source§fn default() -> (B, A, Z, Y, X, W, V, U, T)
fn default() -> (B, A, Z, Y, X, W, V, U, T)
source§impl<C, B, A, Z, Y, X, W, V, U, T> Default for (C, B, A, Z, Y, X, W, V, U, T)where
C: Default,
B: Default,
A: Default,
Z: Default,
Y: Default,
X: Default,
W: Default,
V: Default,
U: Default,
T: Default,
impl<C, B, A, Z, Y, X, W, V, U, T> Default for (C, B, A, Z, Y, X, W, V, U, T)where C: Default, B: Default, A: Default, Z: Default, Y: Default, X: Default, W: Default, V: Default, U: Default, T: Default,
source§fn default() -> (C, B, A, Z, Y, X, W, V, U, T)
fn default() -> (C, B, A, Z, Y, X, W, V, U, T)
source§impl<D, C, B, A, Z, Y, X, W, V, U, T> Default for (D, C, B, A, Z, Y, X, W, V, U, T)where
D: Default,
C: Default,
B: Default,
A: Default,
Z: Default,
Y: Default,
X: Default,
W: Default,
V: Default,
U: Default,
T: Default,
impl<D, C, B, A, Z, Y, X, W, V, U, T> Default for (D, C, B, A, Z, Y, X, W, V, U, T)where D: Default, C: Default, B: Default, A: Default, Z: Default, Y: Default, X: Default, W: Default, V: Default, U: Default, T: Default,
source§fn default() -> (D, C, B, A, Z, Y, X, W, V, U, T)
fn default() -> (D, C, B, A, Z, Y, X, W, V, U, T)
source§impl<E, D, C, B, A, Z, Y, X, W, V, U, T> Default for (E, D, C, B, A, Z, Y, X, W, V, U, T)where
E: Default,
D: Default,
C: Default,
B: Default,
A: Default,
Z: Default,
Y: Default,
X: Default,
W: Default,
V: Default,
U: Default,
T: Default,
impl<E, D, C, B, A, Z, Y, X, W, V, U, T> Default for (E, D, C, B, A, Z, Y, X, W, V, U, T)where E: Default, D: Default, C: Default, B: Default, A: Default, Z: Default, Y: Default, X: Default, W: Default, V: Default, U: Default, T: Default,
source§fn default() -> (E, D, C, B, A, Z, Y, X, W, V, U, T)
fn default() -> (E, D, C, B, A, Z, Y, X, W, V, U, T)
source§impl<T> Default for (T₁, T₂, …, Tₙ)where
T: Default,
impl<T> Default for (T₁, T₂, …, Tₙ)where T: Default,
This trait is implemented for tuples up to twelve items long.
source§impl<W, V, U, T> Default for (W, V, U, T)where
W: Default,
V: Default,
U: Default,
T: Default,
impl<W, V, U, T> Default for (W, V, U, T)where W: Default, V: Default, U: Default, T: Default,
source§fn default() -> (W, V, U, T)
fn default() -> (W, V, U, T)
source§impl<X, W, V, U, T> Default for (X, W, V, U, T)where
X: Default,
W: Default,
V: Default,
U: Default,
T: Default,
impl<X, W, V, U, T> Default for (X, W, V, U, T)where X: Default, W: Default, V: Default, U: Default, T: Default,
source§fn default() -> (X, W, V, U, T)
fn default() -> (X, W, V, U, T)
source§impl<Y, X, W, V, U, T> Default for (Y, X, W, V, U, T)where
Y: Default,
X: Default,
W: Default,
V: Default,
U: Default,
T: Default,
impl<Y, X, W, V, U, T> Default for (Y, X, W, V, U, T)where Y: Default, X: Default, W: Default, V: Default, U: Default, T: Default,
source§fn default() -> (Y, X, W, V, U, T)
fn default() -> (Y, X, W, V, U, T)
source§impl<Z, Y, X, W, V, U, T> Default for (Z, Y, X, W, V, U, T)where
Z: Default,
Y: Default,
X: Default,
W: Default,
V: Default,
U: Default,
T: Default,
impl<Z, Y, X, W, V, U, T> Default for (Z, Y, X, W, V, U, T)where Z: Default, Y: Default, X: Default, W: Default, V: Default, U: Default, T: Default,
source§fn default() -> (Z, Y, X, W, V, U, T)
fn default() -> (Z, Y, X, W, V, U, T)
source§impl<A, Z, Y, X, W, V, U, T> Eq for (A, Z, Y, X, W, V, U, T)where
A: Eq,
Z: Eq,
Y: Eq,
X: Eq,
W: Eq,
V: Eq,
U: Eq,
T: Eq + ?Sized,
impl<A, Z, Y, X, W, V, U, T> Eq for (A, Z, Y, X, W, V, U, T)where A: Eq, Z: Eq, Y: Eq, X: Eq, W: Eq, V: Eq, U: Eq, T: Eq + ?Sized,
fn assert_receiver_is_total_eq(&self)
source§impl<B, A, Z, Y, X, W, V, U, T> Eq for (B, A, Z, Y, X, W, V, U, T)where
B: Eq,
A: Eq,
Z: Eq,
Y: Eq,
X: Eq,
W: Eq,
V: Eq,
U: Eq,
T: Eq + ?Sized,
impl<B, A, Z, Y, X, W, V, U, T> Eq for (B, A, Z, Y, X, W, V, U, T)where B: Eq, A: Eq, Z: Eq, Y: Eq, X: Eq, W: Eq, V: Eq, U: Eq, T: Eq + ?Sized,
fn assert_receiver_is_total_eq(&self)
source§impl<C, B, A, Z, Y, X, W, V, U, T> Eq for (C, B, A, Z, Y, X, W, V, U, T)where
C: Eq,
B: Eq,
A: Eq,
Z: Eq,
Y: Eq,
X: Eq,
W: Eq,
V: Eq,
U: Eq,
T: Eq + ?Sized,
impl<C, B, A, Z, Y, X, W, V, U, T> Eq for (C, B, A, Z, Y, X, W, V, U, T)where C: Eq, B: Eq, A: Eq, Z: Eq, Y: Eq, X: Eq, W: Eq, V: Eq, U: Eq, T: Eq + ?Sized,
fn assert_receiver_is_total_eq(&self)
source§impl<D, C, B, A, Z, Y, X, W, V, U, T> Eq for (D, C, B, A, Z, Y, X, W, V, U, T)where
D: Eq,
C: Eq,
B: Eq,
A: Eq,
Z: Eq,
Y: Eq,
X: Eq,
W: Eq,
V: Eq,
U: Eq,
T: Eq + ?Sized,
impl<D, C, B, A, Z, Y, X, W, V, U, T> Eq for (D, C, B, A, Z, Y, X, W, V, U, T)where D: Eq, C: Eq, B: Eq, A: Eq, Z: Eq, Y: Eq, X: Eq, W: Eq, V: Eq, U: Eq, T: Eq + ?Sized,
fn assert_receiver_is_total_eq(&self)
source§impl<E, D, C, B, A, Z, Y, X, W, V, U, T> Eq for (E, D, C, B, A, Z, Y, X, W, V, U, T)where
E: Eq,
D: Eq,
C: Eq,
B: Eq,
A: Eq,
Z: Eq,
Y: Eq,
X: Eq,
W: Eq,
V: Eq,
U: Eq,
T: Eq + ?Sized,
impl<E, D, C, B, A, Z, Y, X, W, V, U, T> Eq for (E, D, C, B, A, Z, Y, X, W, V, U, T)where E: Eq, D: Eq, C: Eq, B: Eq, A: Eq, Z: Eq, Y: Eq, X: Eq, W: Eq, V: Eq, U: Eq, T: Eq + ?Sized,
fn assert_receiver_is_total_eq(&self)
source§impl<T> Eq for (T₁, T₂, …, Tₙ)where
T: Eq + ?Sized,
impl<T> Eq for (T₁, T₂, …, Tₙ)where T: Eq + ?Sized,
This trait is implemented for tuples up to twelve items long.
fn assert_receiver_is_total_eq(&self)
source§impl<U, T> Eq for (U, T)where
U: Eq,
T: Eq + ?Sized,
impl<U, T> Eq for (U, T)where U: Eq, T: Eq + ?Sized,
fn assert_receiver_is_total_eq(&self)
source§impl<V, U, T> Eq for (V, U, T)where
V: Eq,
U: Eq,
T: Eq + ?Sized,
impl<V, U, T> Eq for (V, U, T)where V: Eq, U: Eq, T: Eq + ?Sized,
fn assert_receiver_is_total_eq(&self)
source§impl<W, V, U, T> Eq for (W, V, U, T)where
W: Eq,
V: Eq,
U: Eq,
T: Eq + ?Sized,
impl<W, V, U, T> Eq for (W, V, U, T)where W: Eq, V: Eq, U: Eq, T: Eq + ?Sized,
fn assert_receiver_is_total_eq(&self)
source§impl<X, W, V, U, T> Eq for (X, W, V, U, T)where
X: Eq,
W: Eq,
V: Eq,
U: Eq,
T: Eq + ?Sized,
impl<X, W, V, U, T> Eq for (X, W, V, U, T)where X: Eq, W: Eq, V: Eq, U: Eq, T: Eq + ?Sized,
fn assert_receiver_is_total_eq(&self)
source§impl<Y, X, W, V, U, T> Eq for (Y, X, W, V, U, T)where
Y: Eq,
X: Eq,
W: Eq,
V: Eq,
U: Eq,
T: Eq + ?Sized,
impl<Y, X, W, V, U, T> Eq for (Y, X, W, V, U, T)where Y: Eq, X: Eq, W: Eq, V: Eq, U: Eq, T: Eq + ?Sized,
fn assert_receiver_is_total_eq(&self)
source§impl<Z, Y, X, W, V, U, T> Eq for (Z, Y, X, W, V, U, T)where
Z: Eq,
Y: Eq,
X: Eq,
W: Eq,
V: Eq,
U: Eq,
T: Eq + ?Sized,
impl<Z, Y, X, W, V, U, T> Eq for (Z, Y, X, W, V, U, T)where Z: Eq, Y: Eq, X: Eq, W: Eq, V: Eq, U: Eq, T: Eq + ?Sized,
fn assert_receiver_is_total_eq(&self)
source§impl<'a, K, V, S, A> Extend<&'a (K, V)> for HashMap<K, V, S, A>where
K: Eq + Hash + Copy,
V: Copy,
S: BuildHasher,
A: Allocator + Clone,
impl<'a, K, V, S, A> Extend<&'a (K, V)> for HashMap<K, V, S, A>where K: Eq + Hash + Copy, V: Copy, S: BuildHasher, A: Allocator + Clone,
Inserts all new key-values from the iterator and replaces values with existing keys with new values returned from the iterator.
source§fn extend<T>(&mut self, iter: T)where
T: IntoIterator<Item = &'a (K, V)>,
fn extend<T>(&mut self, iter: T)where T: IntoIterator<Item = &'a (K, V)>,
Inserts all new key-values from the iterator to existing HashMap<K, V, S, A>
.
Replace values with existing keys with new values returned from the iterator.
The keys and values must implement Copy
trait.
Examples
use hashbrown::hash_map::HashMap;
let mut map = HashMap::new();
map.insert(1, 100);
let arr = [(1, 1), (2, 2)];
let some_iter = arr.iter();
map.extend(some_iter);
// Replace values with existing keys with new values returned from the iterator.
// So that the map.get(&1) doesn't return Some(&100).
assert_eq!(map.get(&1), Some(&1));
let some_vec: Vec<_> = vec![(3, 3), (4, 4)];
map.extend(&some_vec);
let some_arr = [(5, 5), (6, 6)];
map.extend(&some_arr);
let mut vec: Vec<_> = map.into_iter().collect();
// The `IntoIter` iterator produces items in arbitrary order, so the
// items must be sorted to test them against a sorted array.
vec.sort_unstable();
assert_eq!(vec, [(1, 1), (2, 2), (3, 3), (4, 4), (5, 5), (6, 6)]);
Runsource§fn extend_one(&mut self, _: &'a (K, V))
fn extend_one(&mut self, _: &'a (K, V))
extend_one
#72631)1.2.0 · source§impl<'a, K, V, A> Extend<(&'a K, &'a V)> for BTreeMap<K, V, A>where
K: Ord + Copy,
V: Copy,
A: Allocator + Clone,
impl<'a, K, V, A> Extend<(&'a K, &'a V)> for BTreeMap<K, V, A>where K: Ord + Copy, V: Copy, A: Allocator + Clone,
source§fn extend<I>(&mut self, iter: I)where
I: IntoIterator<Item = (&'a K, &'a V)>,
fn extend<I>(&mut self, iter: I)where I: IntoIterator<Item = (&'a K, &'a V)>,
1.4.0 · source§impl<'a, K, V, S> Extend<(&'a K, &'a V)> for HashMap<K, V, S>where
K: Eq + Hash + Copy,
V: Copy,
S: BuildHasher,
impl<'a, K, V, S> Extend<(&'a K, &'a V)> for HashMap<K, V, S>where K: Eq + Hash + Copy, V: Copy, S: BuildHasher,
source§fn extend<T: IntoIterator<Item = (&'a K, &'a V)>>(&mut self, iter: T)
fn extend<T: IntoIterator<Item = (&'a K, &'a V)>>(&mut self, iter: T)
source§impl<'a, K, V, S, A> Extend<(&'a K, &'a V)> for HashMap<K, V, S, A>where
K: Eq + Hash + Copy,
V: Copy,
S: BuildHasher,
A: Allocator + Clone,
impl<'a, K, V, S, A> Extend<(&'a K, &'a V)> for HashMap<K, V, S, A>where K: Eq + Hash + Copy, V: Copy, S: BuildHasher, A: Allocator + Clone,
Inserts all new key-values from the iterator and replaces values with existing keys with new values returned from the iterator.
source§fn extend<T>(&mut self, iter: T)where
T: IntoIterator<Item = (&'a K, &'a V)>,
fn extend<T>(&mut self, iter: T)where T: IntoIterator<Item = (&'a K, &'a V)>,
Inserts all new key-values from the iterator to existing HashMap<K, V, S, A>
.
Replace values with existing keys with new values returned from the iterator.
The keys and values must implement Copy
trait.
Examples
use hashbrown::hash_map::HashMap;
let mut map = HashMap::new();
map.insert(1, 100);
let arr = [(1, 1), (2, 2)];
let some_iter = arr.iter().map(|(k, v)| (k, v));
map.extend(some_iter);
// Replace values with existing keys with new values returned from the iterator.
// So that the map.get(&1) doesn't return Some(&100).
assert_eq!(map.get(&1), Some(&1));
let some_vec: Vec<_> = vec![(3, 3), (4, 4)];
map.extend(some_vec.iter().map(|(k, v)| (k, v)));
let some_arr = [(5, 5), (6, 6)];
map.extend(some_arr.iter().map(|(k, v)| (k, v)));
// You can also extend from another HashMap
let mut new_map = HashMap::new();
new_map.extend(&map);
assert_eq!(new_map, map);
let mut vec: Vec<_> = new_map.into_iter().collect();
// The `IntoIter` iterator produces items in arbitrary order, so the
// items must be sorted to test them against a sorted array.
vec.sort_unstable();
assert_eq!(vec, [(1, 1), (2, 2), (3, 3), (4, 4), (5, 5), (6, 6)]);
Run1.56.0 · source§impl<A, B, ExtendA, ExtendB> Extend<(A, B)> for (ExtendA, ExtendB)where
ExtendA: Extend<A>,
ExtendB: Extend<B>,
impl<A, B, ExtendA, ExtendB> Extend<(A, B)> for (ExtendA, ExtendB)where ExtendA: Extend<A>, ExtendB: Extend<B>,
source§fn extend<T>(&mut self, into_iter: T)where
T: IntoIterator<Item = (A, B)>,
fn extend<T>(&mut self, into_iter: T)where T: IntoIterator<Item = (A, B)>,
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]);
Runsource§fn extend_one(&mut self, item: (A, B))
fn extend_one(&mut self, item: (A, B))
extend_one
#72631)source§impl<K, V, A> Extend<(K, V)> for BTreeMap<K, V, A>where
K: Ord,
A: Allocator + Clone,
impl<K, V, A> Extend<(K, V)> for BTreeMap<K, V, A>where K: Ord, A: Allocator + Clone,
source§impl<K, V, S> Extend<(K, V)> for HashMap<K, V, S>where
K: Eq + Hash,
S: BuildHasher,
impl<K, V, S> Extend<(K, V)> for HashMap<K, V, S>where K: Eq + Hash, S: BuildHasher,
Inserts all new key-values from the iterator and replaces values with existing keys with new values returned from the iterator.
source§impl<K, V, S, A> Extend<(K, V)> for HashMap<K, V, S, A>where
K: Eq + Hash,
S: BuildHasher,
A: Allocator + Clone,
impl<K, V, S, A> Extend<(K, V)> for HashMap<K, V, S, A>where K: Eq + Hash, S: BuildHasher, A: Allocator + Clone,
Inserts all new key-values from the iterator and replaces values with existing keys with new values returned from the iterator.
source§fn extend<T>(&mut self, iter: T)where
T: IntoIterator<Item = (K, V)>,
fn extend<T>(&mut self, iter: T)where T: IntoIterator<Item = (K, V)>,
Inserts all new key-values from the iterator to existing HashMap<K, V, S, A>
.
Replace values with existing keys with new values returned from the iterator.
Examples
use hashbrown::hash_map::HashMap;
let mut map = HashMap::new();
map.insert(1, 100);
let some_iter = [(1, 1), (2, 2)].into_iter();
map.extend(some_iter);
// Replace values with existing keys with new values returned from the iterator.
// So that the map.get(&1) doesn't return Some(&100).
assert_eq!(map.get(&1), Some(&1));
let some_vec: Vec<_> = vec![(3, 3), (4, 4)];
map.extend(some_vec);
let some_arr = [(5, 5), (6, 6)];
map.extend(some_arr);
let old_map_len = map.len();
// You can also extend from another HashMap
let mut new_map = HashMap::new();
new_map.extend(map);
assert_eq!(new_map.len(), old_map_len);
let mut vec: Vec<_> = new_map.into_iter().collect();
// The `IntoIter` iterator produces items in arbitrary order, so the
// items must be sorted to test them against a sorted array.
vec.sort_unstable();
assert_eq!(vec, [(1, 1), (2, 2), (3, 3), (4, 4), (5, 5), (6, 6)]);
Runsource§fn extend_one(&mut self, _: (K, V))
fn extend_one(&mut self, _: (K, V))
extend_one
#72631)1.71.0 · source§impl<T> From<[T; 10]> for (T, T, T, T, T, T, T, T, T, T)
impl<T> From<[T; 10]> for (T, T, T, T, T, T, T, T, T, T)
source§fn from(array: [T; 10]) -> (T, T, T, T, T, T, T, T, T, T)
fn from(array: [T; 10]) -> (T, T, T, T, T, T, T, T, T, T)
1.71.0 · source§impl<T> From<[T; 11]> for (T, T, T, T, T, T, T, T, T, T, T)
impl<T> From<[T; 11]> for (T, T, T, T, T, T, T, T, T, T, T)
source§fn from(array: [T; 11]) -> (T, T, T, T, T, T, T, T, T, T, T)
fn from(array: [T; 11]) -> (T, T, T, T, T, T, T, T, T, T, T)
1.71.0 · source§impl<T> From<[T; 12]> for (T, T, T, T, T, T, T, T, T, T, T, T)
impl<T> From<[T; 12]> for (T, T, T, T, T, T, T, T, T, T, T, T)
source§fn from(array: [T; 12]) -> (T, T, T, T, T, T, T, T, T, T, T, T)
fn from(array: [T; 12]) -> (T, T, T, T, T, T, T, T, T, T, T, T)
1.71.0 · source§impl<T> From<[T; 4]> for (T, T, T, T)
impl<T> From<[T; 4]> for (T, T, T, T)
source§fn from(array: [T; 4]) -> (T, T, T, T)
fn from(array: [T; 4]) -> (T, T, T, T)
1.71.0 · source§impl<T> From<[T; 5]> for (T, T, T, T, T)
impl<T> From<[T; 5]> for (T, T, T, T, T)
source§fn from(array: [T; 5]) -> (T, T, T, T, T)
fn from(array: [T; 5]) -> (T, T, T, T, T)
1.71.0 · source§impl<T> From<[T; 6]> for (T, T, T, T, T, T)
impl<T> From<[T; 6]> for (T, T, T, T, T, T)
source§fn from(array: [T; 6]) -> (T, T, T, T, T, T)
fn from(array: [T; 6]) -> (T, T, T, T, T, T)
1.71.0 · source§impl<T> From<[T; 7]> for (T, T, T, T, T, T, T)
impl<T> From<[T; 7]> for (T, T, T, T, T, T, T)
source§fn from(array: [T; 7]) -> (T, T, T, T, T, T, T)
fn from(array: [T; 7]) -> (T, T, T, T, T, T, T)
1.71.0 · source§impl<T> From<[T; 8]> for (T, T, T, T, T, T, T, T)
impl<T> From<[T; 8]> for (T, T, T, T, T, T, T, T)
source§fn from(array: [T; 8]) -> (T, T, T, T, T, T, T, T)
fn from(array: [T; 8]) -> (T, T, T, T, T, T, T, T)
1.71.0 · source§impl<T> From<[T; 9]> for (T, T, T, T, T, T, T, T, T)
impl<T> From<[T; 9]> for (T, T, T, T, T, T, T, T, T)
source§fn from(array: [T; 9]) -> (T, T, T, T, T, T, T, T, T)
fn from(array: [T; 9]) -> (T, T, T, T, T, T, T, T, T)
1.17.0 · source§impl<I> From<(I, u16)> for SocketAddrwhere
I: Into<IpAddr>,
impl<I> From<(I, u16)> for SocketAddrwhere I: Into<IpAddr>,
source§fn from(pieces: (I, u16)) -> SocketAddr
fn from(pieces: (I, u16)) -> SocketAddr
Converts a tuple struct (Into<IpAddr
>, u16
) into a SocketAddr
.
This conversion creates a SocketAddr::V4
for an IpAddr::V4
and creates a SocketAddr::V6
for an IpAddr::V6
.
u16
is treated as port of the newly created SocketAddr
.
1.71.0 · source§impl<T> From<(T, T, T, T)> for [T; 4]
impl<T> From<(T, T, T, T)> for [T; 4]
source§fn from(tuple: (T, T, T, T)) -> [T; 4]
fn from(tuple: (T, T, T, T)) -> [T; 4]
1.71.0 · source§impl<T> From<(T, T, T, T, T)> for [T; 5]
impl<T> From<(T, T, T, T, T)> for [T; 5]
source§fn from(tuple: (T, T, T, T, T)) -> [T; 5]
fn from(tuple: (T, T, T, T, T)) -> [T; 5]
1.71.0 · source§impl<T> From<(T, T, T, T, T, T)> for [T; 6]
impl<T> From<(T, T, T, T, T, T)> for [T; 6]
source§fn from(tuple: (T, T, T, T, T, T)) -> [T; 6]
fn from(tuple: (T, T, T, T, T, T)) -> [T; 6]
1.71.0 · source§impl<T> From<(T, T, T, T, T, T, T)> for [T; 7]
impl<T> From<(T, T, T, T, T, T, T)> for [T; 7]
source§fn from(tuple: (T, T, T, T, T, T, T)) -> [T; 7]
fn from(tuple: (T, T, T, T, T, T, T)) -> [T; 7]
1.71.0 · source§impl<T> From<(T, T, T, T, T, T, T, T)> for [T; 8]
impl<T> From<(T, T, T, T, T, T, T, T)> for [T; 8]
source§fn from(tuple: (T, T, T, T, T, T, T, T)) -> [T; 8]
fn from(tuple: (T, T, T, T, T, T, T, T)) -> [T; 8]
1.71.0 · source§impl<T> From<(T, T, T, T, T, T, T, T, T)> for [T; 9]
impl<T> From<(T, T, T, T, T, T, T, T, T)> for [T; 9]
source§fn from(tuple: (T, T, T, T, T, T, T, T, T)) -> [T; 9]
fn from(tuple: (T, T, T, T, T, T, T, T, T)) -> [T; 9]
1.71.0 · source§impl<T> From<(T, T, T, T, T, T, T, T, T, T)> for [T; 10]
impl<T> From<(T, T, T, T, T, T, T, T, T, T)> for [T; 10]
source§fn from(tuple: (T, T, T, T, T, T, T, T, T, T)) -> [T; 10]
fn from(tuple: (T, T, T, T, T, T, T, T, T, T)) -> [T; 10]
1.71.0 · source§impl<T> From<(T, T, T, T, T, T, T, T, T, T, T)> for [T; 11]
impl<T> From<(T, T, T, T, T, T, T, T, T, T, T)> for [T; 11]
source§fn from(tuple: (T, T, T, T, T, T, T, T, T, T, T)) -> [T; 11]
fn from(tuple: (T, T, T, T, T, T, T, T, T, T, T)) -> [T; 11]
1.71.0 · source§impl<T> From<(T, T, T, T, T, T, T, T, T, T, T, T)> for [T; 12]
impl<T> From<(T, T, T, T, T, T, T, T, T, T, T, T)> for [T; 12]
source§fn from(tuple: (T, T, T, T, T, T, T, T, T, T, T, T)) -> [T; 12]
fn from(tuple: (T, T, T, T, T, T, T, T, T, T, T, T)) -> [T; 12]
source§impl<K, V, S> FromIterator<(K, V)> for HashMap<K, V, S>where
K: Eq + Hash,
S: BuildHasher + Default,
impl<K, V, S> FromIterator<(K, V)> for HashMap<K, V, S>where K: Eq + Hash, S: BuildHasher + Default,
source§impl<K, V, S, A> FromIterator<(K, V)> for HashMap<K, V, S, A>where
K: Eq + Hash,
S: BuildHasher + Default,
A: Default + Allocator + Clone,
impl<K, V, S, A> FromIterator<(K, V)> for HashMap<K, V, S, A>where K: Eq + Hash, S: BuildHasher + Default, A: Default + Allocator + Clone,
source§impl<T> Hash for (T₁, T₂, …, Tₙ)where
T: Hash + ?Sized,
impl<T> Hash for (T₁, T₂, …, Tₙ)where T: Hash + ?Sized,
This trait is implemented for tuples up to twelve items long.
source§impl<T, B, C, D, E> Hash for (T, B, C, D, E)where
T: Hash,
B: Hash,
C: Hash,
D: Hash,
E: Hash + ?Sized,
impl<T, B, C, D, E> Hash for (T, B, C, D, E)where T: Hash, B: Hash, C: Hash, D: Hash, E: Hash + ?Sized,
source§impl<T, B, C, D, E, F> Hash for (T, B, C, D, E, F)where
T: Hash,
B: Hash,
C: Hash,
D: Hash,
E: Hash,
F: Hash + ?Sized,
impl<T, B, C, D, E, F> Hash for (T, B, C, D, E, F)where T: Hash, B: Hash, C: Hash, D: Hash, E: Hash, F: Hash + ?Sized,
source§impl<T, B, C, D, E, F, G> Hash for (T, B, C, D, E, F, G)where
T: Hash,
B: Hash,
C: Hash,
D: Hash,
E: Hash,
F: Hash,
G: Hash + ?Sized,
impl<T, B, C, D, E, F, G> Hash for (T, B, C, D, E, F, G)where T: Hash, B: Hash, C: Hash, D: Hash, E: Hash, F: Hash, G: Hash + ?Sized,
source§impl<T, B, C, D, E, F, G, H> Hash for (T, B, C, D, E, F, G, H)where
T: Hash,
B: Hash,
C: Hash,
D: Hash,
E: Hash,
F: Hash,
G: Hash,
H: Hash + ?Sized,
impl<T, B, C, D, E, F, G, H> Hash for (T, B, C, D, E, F, G, H)where T: Hash, B: Hash, C: Hash, D: Hash, E: Hash, F: Hash, G: Hash, H: Hash + ?Sized,
source§impl<T, B, C, D, E, F, G, H, I> Hash for (T, B, C, D, E, F, G, H, I)where
T: Hash,
B: Hash,
C: Hash,
D: Hash,
E: Hash,
F: Hash,
G: Hash,
H: Hash,
I: Hash + ?Sized,
impl<T, B, C, D, E, F, G, H, I> Hash for (T, B, C, D, E, F, G, H, I)where T: Hash, B: Hash, C: Hash, D: Hash, E: Hash, F: Hash, G: Hash, H: Hash, I: Hash + ?Sized,
source§impl<T, B, C, D, E, F, G, H, I, J> Hash for (T, B, C, D, E, F, G, H, I, J)where
T: Hash,
B: Hash,
C: Hash,
D: Hash,
E: Hash,
F: Hash,
G: Hash,
H: Hash,
I: Hash,
J: Hash + ?Sized,
impl<T, B, C, D, E, F, G, H, I, J> Hash for (T, B, C, D, E, F, G, H, I, J)where T: Hash, B: Hash, C: Hash, D: Hash, E: Hash, F: Hash, G: Hash, H: Hash, I: Hash, J: Hash + ?Sized,
source§impl<T, B, C, D, E, F, G, H, I, J, K> Hash for (T, B, C, D, E, F, G, H, I, J, K)where
T: Hash,
B: Hash,
C: Hash,
D: Hash,
E: Hash,
F: Hash,
G: Hash,
H: Hash,
I: Hash,
J: Hash,
K: Hash + ?Sized,
impl<T, B, C, D, E, F, G, H, I, J, K> Hash for (T, B, C, D, E, F, G, H, I, J, K)where T: Hash, B: Hash, C: Hash, D: Hash, E: Hash, F: Hash, G: Hash, H: Hash, I: Hash, J: Hash, K: Hash + ?Sized,
source§impl<T, B, C, D, E, F, G, H, I, J, K, L> Hash for (T, B, C, D, E, F, G, H, I, J, K, L)where
T: Hash,
B: Hash,
C: Hash,
D: Hash,
E: Hash,
F: Hash,
G: Hash,
H: Hash,
I: Hash,
J: Hash,
K: Hash,
L: Hash + ?Sized,
impl<T, B, C, D, E, F, G, H, I, J, K, L> Hash for (T, B, C, D, E, F, G, H, I, J, K, L)where T: Hash, B: Hash, C: Hash, D: Hash, E: Hash, F: Hash, G: Hash, H: Hash, I: Hash, J: Hash, K: Hash, L: Hash + ?Sized,
source§impl<A, Z, Y, X, W, V, U, T> Ord for (A, Z, Y, X, W, V, U, T)where
A: Ord,
Z: Ord,
Y: Ord,
X: Ord,
W: Ord,
V: Ord,
U: Ord,
T: Ord + ?Sized,
impl<A, Z, Y, X, W, V, U, T> Ord for (A, Z, Y, X, W, V, U, T)where A: Ord, Z: Ord, Y: Ord, X: Ord, W: Ord, V: Ord, U: Ord, T: Ord + ?Sized,
source§impl<B, A, Z, Y, X, W, V, U, T> Ord for (B, A, Z, Y, X, W, V, U, T)where
B: Ord,
A: Ord,
Z: Ord,
Y: Ord,
X: Ord,
W: Ord,
V: Ord,
U: Ord,
T: Ord + ?Sized,
impl<B, A, Z, Y, X, W, V, U, T> Ord for (B, A, Z, Y, X, W, V, U, T)where B: Ord, A: Ord, Z: Ord, Y: Ord, X: Ord, W: Ord, V: Ord, U: Ord, T: Ord + ?Sized,
source§impl<C, B, A, Z, Y, X, W, V, U, T> Ord for (C, B, A, Z, Y, X, W, V, U, T)where
C: Ord,
B: Ord,
A: Ord,
Z: Ord,
Y: Ord,
X: Ord,
W: Ord,
V: Ord,
U: Ord,
T: Ord + ?Sized,
impl<C, B, A, Z, Y, X, W, V, U, T> Ord for (C, B, A, Z, Y, X, W, V, U, T)where C: Ord, B: Ord, A: Ord, Z: Ord, Y: Ord, X: Ord, W: Ord, V: Ord, U: Ord, T: Ord + ?Sized,
source§impl<D, C, B, A, Z, Y, X, W, V, U, T> Ord for (D, C, B, A, Z, Y, X, W, V, U, T)where
D: Ord,
C: Ord,
B: Ord,
A: Ord,
Z: Ord,
Y: Ord,
X: Ord,
W: Ord,
V: Ord,
U: Ord,
T: Ord + ?Sized,
impl<D, C, B, A, Z, Y, X, W, V, U, T> Ord for (D, C, B, A, Z, Y, X, W, V, U, T)where D: Ord, C: Ord, B: Ord, A: Ord, Z: Ord, Y: Ord, X: Ord, W: Ord, V: Ord, U: Ord, T: Ord + ?Sized,
source§impl<E, D, C, B, A, Z, Y, X, W, V, U, T> Ord for (E, D, C, B, A, Z, Y, X, W, V, U, T)where
E: Ord,
D: Ord,
C: Ord,
B: Ord,
A: Ord,
Z: Ord,
Y: Ord,
X: Ord,
W: Ord,
V: Ord,
U: Ord,
T: Ord + ?Sized,
impl<E, D, C, B, A, Z, Y, X, W, V, U, T> Ord for (E, D, C, B, A, Z, Y, X, W, V, U, T)where E: Ord, D: Ord, C: Ord, B: Ord, A: Ord, Z: Ord, Y: Ord, X: Ord, W: Ord, V: Ord, U: Ord, T: Ord + ?Sized,
source§impl<T> Ord for (T₁, T₂, …, Tₙ)where
T: Ord + ?Sized,
impl<T> Ord for (T₁, T₂, …, Tₙ)where T: Ord + ?Sized,
This trait is implemented for tuples up to twelve items long.
source§impl<X, W, V, U, T> Ord for (X, W, V, U, T)where
X: Ord,
W: Ord,
V: Ord,
U: Ord,
T: Ord + ?Sized,
impl<X, W, V, U, T> Ord for (X, W, V, U, T)where X: Ord, W: Ord, V: Ord, U: Ord, T: Ord + ?Sized,
source§impl<Y, X, W, V, U, T> Ord for (Y, X, W, V, U, T)where
Y: Ord,
X: Ord,
W: Ord,
V: Ord,
U: Ord,
T: Ord + ?Sized,
impl<Y, X, W, V, U, T> Ord for (Y, X, W, V, U, T)where Y: Ord, X: Ord, W: Ord, V: Ord, U: Ord, T: Ord + ?Sized,
source§impl<Z, Y, X, W, V, U, T> Ord for (Z, Y, X, W, V, U, T)where
Z: Ord,
Y: Ord,
X: Ord,
W: Ord,
V: Ord,
U: Ord,
T: Ord + ?Sized,
impl<Z, Y, X, W, V, U, T> Ord for (Z, Y, X, W, V, U, T)where Z: Ord, Y: Ord, X: Ord, W: Ord, V: Ord, U: Ord, T: Ord + ?Sized,
source§impl<A, Z, Y, X, W, V, U, T> PartialEq<(A, Z, Y, X, W, V, U, T)> for (A, Z, Y, X, W, V, U, T)where
A: PartialEq<A>,
Z: PartialEq<Z>,
Y: PartialEq<Y>,
X: PartialEq<X>,
W: PartialEq<W>,
V: PartialEq<V>,
U: PartialEq<U>,
T: PartialEq<T> + ?Sized,
impl<A, Z, Y, X, W, V, U, T> PartialEq<(A, Z, Y, X, W, V, U, T)> for (A, Z, Y, X, W, V, U, T)where A: PartialEq<A>, Z: PartialEq<Z>, Y: PartialEq<Y>, X: PartialEq<X>, W: PartialEq<W>, V: PartialEq<V>, U: PartialEq<U>, T: PartialEq<T> + ?Sized,
source§fn eq(&self, other: &(A, Z, Y, X, W, V, U, T)) -> bool
fn eq(&self, other: &(A, Z, Y, X, W, V, U, T)) -> bool
self
and other
values to be equal, and is used
by ==
.source§fn ne(&self, other: &(A, Z, Y, X, W, V, U, T)) -> bool
fn ne(&self, other: &(A, Z, Y, X, W, V, U, T)) -> bool
!=
. The default implementation is almost always
sufficient, and should not be overridden without very good reason.source§impl<B, A, Z, Y, X, W, V, U, T> PartialEq<(B, A, Z, Y, X, W, V, U, T)> for (B, A, Z, Y, X, W, V, U, T)where
B: PartialEq<B>,
A: PartialEq<A>,
Z: PartialEq<Z>,
Y: PartialEq<Y>,
X: PartialEq<X>,
W: PartialEq<W>,
V: PartialEq<V>,
U: PartialEq<U>,
T: PartialEq<T> + ?Sized,
impl<B, A, Z, Y, X, W, V, U, T> PartialEq<(B, A, Z, Y, X, W, V, U, T)> for (B, A, Z, Y, X, W, V, U, T)where B: PartialEq<B>, A: PartialEq<A>, Z: PartialEq<Z>, Y: PartialEq<Y>, X: PartialEq<X>, W: PartialEq<W>, V: PartialEq<V>, U: PartialEq<U>, T: PartialEq<T> + ?Sized,
source§fn eq(&self, other: &(B, A, Z, Y, X, W, V, U, T)) -> bool
fn eq(&self, other: &(B, A, Z, Y, X, W, V, U, T)) -> bool
self
and other
values to be equal, and is used
by ==
.source§fn ne(&self, other: &(B, A, Z, Y, X, W, V, U, T)) -> bool
fn ne(&self, other: &(B, A, Z, Y, X, W, V, U, T)) -> bool
!=
. The default implementation is almost always
sufficient, and should not be overridden without very good reason.source§impl<C, B, A, Z, Y, X, W, V, U, T> PartialEq<(C, B, A, Z, Y, X, W, V, U, T)> for (C, B, A, Z, Y, X, W, V, U, T)where
C: PartialEq<C>,
B: PartialEq<B>,
A: PartialEq<A>,
Z: PartialEq<Z>,
Y: PartialEq<Y>,
X: PartialEq<X>,
W: PartialEq<W>,
V: PartialEq<V>,
U: PartialEq<U>,
T: PartialEq<T> + ?Sized,
impl<C, B, A, Z, Y, X, W, V, U, T> PartialEq<(C, B, A, Z, Y, X, W, V, U, T)> for (C, B, A, Z, Y, X, W, V, U, T)where C: PartialEq<C>, B: PartialEq<B>, A: PartialEq<A>, Z: PartialEq<Z>, Y: PartialEq<Y>, X: PartialEq<X>, W: PartialEq<W>, V: PartialEq<V>, U: PartialEq<U>, T: PartialEq<T> + ?Sized,
source§fn eq(&self, other: &(C, B, A, Z, Y, X, W, V, U, T)) -> bool
fn eq(&self, other: &(C, B, A, Z, Y, X, W, V, U, T)) -> bool
self
and other
values to be equal, and is used
by ==
.source§fn ne(&self, other: &(C, B, A, Z, Y, X, W, V, U, T)) -> bool
fn ne(&self, other: &(C, B, A, Z, Y, X, W, V, U, T)) -> bool
!=
. The default implementation is almost always
sufficient, and should not be overridden without very good reason.source§impl<D, C, B, A, Z, Y, X, W, V, U, 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
D: PartialEq<D>,
C: PartialEq<C>,
B: PartialEq<B>,
A: PartialEq<A>,
Z: PartialEq<Z>,
Y: PartialEq<Y>,
X: PartialEq<X>,
W: PartialEq<W>,
V: PartialEq<V>,
U: PartialEq<U>,
T: PartialEq<T> + ?Sized,
impl<D, C, B, A, Z, Y, X, W, V, U, 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 D: PartialEq<D>, C: PartialEq<C>, B: PartialEq<B>, A: PartialEq<A>, Z: PartialEq<Z>, Y: PartialEq<Y>, X: PartialEq<X>, W: PartialEq<W>, V: PartialEq<V>, U: PartialEq<U>, T: PartialEq<T> + ?Sized,
source§fn eq(&self, other: &(D, C, B, A, Z, Y, X, W, V, U, T)) -> bool
fn eq(&self, other: &(D, C, B, A, Z, Y, X, W, V, U, T)) -> bool
self
and other
values to be equal, and is used
by ==
.source§fn ne(&self, other: &(D, C, B, A, Z, Y, X, W, V, U, T)) -> bool
fn ne(&self, other: &(D, C, B, A, Z, Y, X, W, V, U, T)) -> bool
!=
. The default implementation is almost always
sufficient, and should not be overridden without very good reason.source§impl<E, D, C, B, A, Z, Y, X, W, V, U, 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
E: PartialEq<E>,
D: PartialEq<D>,
C: PartialEq<C>,
B: PartialEq<B>,
A: PartialEq<A>,
Z: PartialEq<Z>,
Y: PartialEq<Y>,
X: PartialEq<X>,
W: PartialEq<W>,
V: PartialEq<V>,
U: PartialEq<U>,
T: PartialEq<T> + ?Sized,
impl<E, D, C, B, A, Z, Y, X, W, V, U, 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 E: PartialEq<E>, D: PartialEq<D>, C: PartialEq<C>, B: PartialEq<B>, A: PartialEq<A>, Z: PartialEq<Z>, Y: PartialEq<Y>, X: PartialEq<X>, W: PartialEq<W>, V: PartialEq<V>, U: PartialEq<U>, T: PartialEq<T> + ?Sized,
source§fn eq(&self, other: &(E, D, C, B, A, Z, Y, X, W, V, U, T)) -> bool
fn eq(&self, other: &(E, D, C, B, A, Z, Y, X, W, V, U, T)) -> bool
self
and other
values to be equal, and is used
by ==
.source§fn ne(&self, other: &(E, D, C, B, A, Z, Y, X, W, V, U, T)) -> bool
fn ne(&self, other: &(E, D, C, B, A, Z, Y, X, W, V, U, T)) -> bool
!=
. The default implementation is almost always
sufficient, and should not be overridden without very good reason.source§impl<T> PartialEq<(T,)> for (T₁, T₂, …, Tₙ)where
T: PartialEq<T> + ?Sized,
impl<T> PartialEq<(T,)> for (T₁, T₂, …, Tₙ)where T: PartialEq<T> + ?Sized,
This trait is implemented for tuples up to twelve items long.
source§impl<V, U, T> PartialEq<(V, U, T)> for (V, U, T)where
V: PartialEq<V>,
U: PartialEq<U>,
T: PartialEq<T> + ?Sized,
impl<V, U, T> PartialEq<(V, U, T)> for (V, U, T)where V: PartialEq<V>, U: PartialEq<U>, T: PartialEq<T> + ?Sized,
source§impl<W, V, U, T> PartialEq<(W, V, U, T)> for (W, V, U, T)where
W: PartialEq<W>,
V: PartialEq<V>,
U: PartialEq<U>,
T: PartialEq<T> + ?Sized,
impl<W, V, U, T> PartialEq<(W, V, U, T)> for (W, V, U, T)where W: PartialEq<W>, V: PartialEq<V>, U: PartialEq<U>, T: PartialEq<T> + ?Sized,
source§fn eq(&self, other: &(W, V, U, T)) -> bool
fn eq(&self, other: &(W, V, U, T)) -> bool
self
and other
values to be equal, and is used
by ==
.source§fn ne(&self, other: &(W, V, U, T)) -> bool
fn ne(&self, other: &(W, V, U, T)) -> bool
!=
. The default implementation is almost always
sufficient, and should not be overridden without very good reason.source§impl<X, W, V, U, T> PartialEq<(X, W, V, U, T)> for (X, W, V, U, T)where
X: PartialEq<X>,
W: PartialEq<W>,
V: PartialEq<V>,
U: PartialEq<U>,
T: PartialEq<T> + ?Sized,
impl<X, W, V, U, T> PartialEq<(X, W, V, U, T)> for (X, W, V, U, T)where X: PartialEq<X>, W: PartialEq<W>, V: PartialEq<V>, U: PartialEq<U>, T: PartialEq<T> + ?Sized,
source§fn eq(&self, other: &(X, W, V, U, T)) -> bool
fn eq(&self, other: &(X, W, V, U, T)) -> bool
self
and other
values to be equal, and is used
by ==
.source§fn ne(&self, other: &(X, W, V, U, T)) -> bool
fn ne(&self, other: &(X, W, V, U, T)) -> bool
!=
. The default implementation is almost always
sufficient, and should not be overridden without very good reason.source§impl<Y, X, W, V, U, T> PartialEq<(Y, X, W, V, U, T)> for (Y, X, W, V, U, T)where
Y: PartialEq<Y>,
X: PartialEq<X>,
W: PartialEq<W>,
V: PartialEq<V>,
U: PartialEq<U>,
T: PartialEq<T> + ?Sized,
impl<Y, X, W, V, U, T> PartialEq<(Y, X, W, V, U, T)> for (Y, X, W, V, U, T)where Y: PartialEq<Y>, X: PartialEq<X>, W: PartialEq<W>, V: PartialEq<V>, U: PartialEq<U>, T: PartialEq<T> + ?Sized,
source§fn eq(&self, other: &(Y, X, W, V, U, T)) -> bool
fn eq(&self, other: &(Y, X, W, V, U, T)) -> bool
self
and other
values to be equal, and is used
by ==
.source§fn ne(&self, other: &(Y, X, W, V, U, T)) -> bool
fn ne(&self, other: &(Y, X, W, V, U, T)) -> bool
!=
. The default implementation is almost always
sufficient, and should not be overridden without very good reason.source§impl<Z, Y, X, W, V, U, T> PartialEq<(Z, Y, X, W, V, U, T)> for (Z, Y, X, W, V, U, T)where
Z: PartialEq<Z>,
Y: PartialEq<Y>,
X: PartialEq<X>,
W: PartialEq<W>,
V: PartialEq<V>,
U: PartialEq<U>,
T: PartialEq<T> + ?Sized,
impl<Z, Y, X, W, V, U, T> PartialEq<(Z, Y, X, W, V, U, T)> for (Z, Y, X, W, V, U, T)where Z: PartialEq<Z>, Y: PartialEq<Y>, X: PartialEq<X>, W: PartialEq<W>, V: PartialEq<V>, U: PartialEq<U>, T: PartialEq<T> + ?Sized,
source§fn eq(&self, other: &(Z, Y, X, W, V, U, T)) -> bool
fn eq(&self, other: &(Z, Y, X, W, V, U, T)) -> bool
self
and other
values to be equal, and is used
by ==
.source§fn ne(&self, other: &(Z, Y, X, W, V, U, T)) -> bool
fn ne(&self, other: &(Z, Y, X, W, V, U, T)) -> bool
!=
. The default implementation is almost always
sufficient, and should not be overridden without very good reason.source§impl<A, Z, Y, X, W, V, U, T> PartialOrd<(A, Z, Y, X, W, V, U, T)> for (A, Z, Y, X, W, V, U, T)where
A: PartialOrd<A>,
Z: PartialOrd<Z>,
Y: PartialOrd<Y>,
X: PartialOrd<X>,
W: PartialOrd<W>,
V: PartialOrd<V>,
U: PartialOrd<U>,
T: PartialOrd<T> + ?Sized,
impl<A, Z, Y, X, W, V, U, T> PartialOrd<(A, Z, Y, X, W, V, U, T)> for (A, Z, Y, X, W, V, U, T)where A: PartialOrd<A>, Z: PartialOrd<Z>, Y: PartialOrd<Y>, X: PartialOrd<X>, W: PartialOrd<W>, V: PartialOrd<V>, U: PartialOrd<U>, T: PartialOrd<T> + ?Sized,
source§fn partial_cmp(&self, other: &(A, Z, Y, X, W, V, U, T)) -> Option<Ordering>
fn partial_cmp(&self, other: &(A, Z, Y, X, W, V, U, T)) -> Option<Ordering>
source§fn lt(&self, other: &(A, Z, Y, X, W, V, U, T)) -> bool
fn lt(&self, other: &(A, Z, Y, X, W, V, U, T)) -> bool
source§fn le(&self, other: &(A, Z, Y, X, W, V, U, T)) -> bool
fn le(&self, other: &(A, Z, Y, X, W, V, U, T)) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl<B, A, Z, Y, X, W, V, U, T> PartialOrd<(B, A, Z, Y, X, W, V, U, T)> for (B, A, Z, Y, X, W, V, U, T)where
B: PartialOrd<B>,
A: PartialOrd<A>,
Z: PartialOrd<Z>,
Y: PartialOrd<Y>,
X: PartialOrd<X>,
W: PartialOrd<W>,
V: PartialOrd<V>,
U: PartialOrd<U>,
T: PartialOrd<T> + ?Sized,
impl<B, A, Z, Y, X, W, V, U, T> PartialOrd<(B, A, Z, Y, X, W, V, U, T)> for (B, A, Z, Y, X, W, V, U, T)where B: PartialOrd<B>, A: PartialOrd<A>, Z: PartialOrd<Z>, Y: PartialOrd<Y>, X: PartialOrd<X>, W: PartialOrd<W>, V: PartialOrd<V>, U: PartialOrd<U>, T: PartialOrd<T> + ?Sized,
source§fn partial_cmp(&self, other: &(B, A, Z, Y, X, W, V, U, T)) -> Option<Ordering>
fn partial_cmp(&self, other: &(B, A, Z, Y, X, W, V, U, T)) -> Option<Ordering>
source§fn lt(&self, other: &(B, A, Z, Y, X, W, V, U, T)) -> bool
fn lt(&self, other: &(B, A, Z, Y, X, W, V, U, T)) -> bool
source§fn le(&self, other: &(B, A, Z, Y, X, W, V, U, T)) -> bool
fn le(&self, other: &(B, A, Z, Y, X, W, V, U, T)) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl<C, B, A, Z, Y, X, W, V, U, T> PartialOrd<(C, B, A, Z, Y, X, W, V, U, T)> for (C, B, A, Z, Y, X, W, V, U, T)where
C: PartialOrd<C>,
B: PartialOrd<B>,
A: PartialOrd<A>,
Z: PartialOrd<Z>,
Y: PartialOrd<Y>,
X: PartialOrd<X>,
W: PartialOrd<W>,
V: PartialOrd<V>,
U: PartialOrd<U>,
T: PartialOrd<T> + ?Sized,
impl<C, B, A, Z, Y, X, W, V, U, T> PartialOrd<(C, B, A, Z, Y, X, W, V, U, T)> for (C, B, A, Z, Y, X, W, V, U, T)where C: PartialOrd<C>, B: PartialOrd<B>, A: PartialOrd<A>, Z: PartialOrd<Z>, Y: PartialOrd<Y>, X: PartialOrd<X>, W: PartialOrd<W>, V: PartialOrd<V>, U: PartialOrd<U>, T: PartialOrd<T> + ?Sized,
source§fn partial_cmp(
&self,
other: &(C, B, A, Z, Y, X, W, V, U, T)
) -> Option<Ordering>
fn partial_cmp( &self, other: &(C, B, A, Z, Y, X, W, V, U, T) ) -> Option<Ordering>
source§fn lt(&self, other: &(C, B, A, Z, Y, X, W, V, U, T)) -> bool
fn lt(&self, other: &(C, B, A, Z, Y, X, W, V, U, T)) -> bool
source§fn le(&self, other: &(C, B, A, Z, Y, X, W, V, U, T)) -> bool
fn le(&self, other: &(C, B, A, Z, Y, X, W, V, U, T)) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl<D, C, B, A, Z, Y, X, W, V, U, 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
D: PartialOrd<D>,
C: PartialOrd<C>,
B: PartialOrd<B>,
A: PartialOrd<A>,
Z: PartialOrd<Z>,
Y: PartialOrd<Y>,
X: PartialOrd<X>,
W: PartialOrd<W>,
V: PartialOrd<V>,
U: PartialOrd<U>,
T: PartialOrd<T> + ?Sized,
impl<D, C, B, A, Z, Y, X, W, V, U, 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 D: PartialOrd<D>, C: PartialOrd<C>, B: PartialOrd<B>, A: PartialOrd<A>, Z: PartialOrd<Z>, Y: PartialOrd<Y>, X: PartialOrd<X>, W: PartialOrd<W>, V: PartialOrd<V>, U: PartialOrd<U>, T: PartialOrd<T> + ?Sized,
source§fn partial_cmp(
&self,
other: &(D, C, B, A, Z, Y, X, W, V, U, T)
) -> Option<Ordering>
fn partial_cmp( &self, other: &(D, C, B, A, Z, Y, X, W, V, U, T) ) -> Option<Ordering>
source§fn lt(&self, other: &(D, C, B, A, Z, Y, X, W, V, U, T)) -> bool
fn lt(&self, other: &(D, C, B, A, Z, Y, X, W, V, U, T)) -> bool
source§fn le(&self, other: &(D, C, B, A, Z, Y, X, W, V, U, T)) -> bool
fn le(&self, other: &(D, C, B, A, Z, Y, X, W, V, U, T)) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl<E, D, C, B, A, Z, Y, X, W, V, U, 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
E: PartialOrd<E>,
D: PartialOrd<D>,
C: PartialOrd<C>,
B: PartialOrd<B>,
A: PartialOrd<A>,
Z: PartialOrd<Z>,
Y: PartialOrd<Y>,
X: PartialOrd<X>,
W: PartialOrd<W>,
V: PartialOrd<V>,
U: PartialOrd<U>,
T: PartialOrd<T> + ?Sized,
impl<E, D, C, B, A, Z, Y, X, W, V, U, 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 E: PartialOrd<E>, D: PartialOrd<D>, C: PartialOrd<C>, B: PartialOrd<B>, A: PartialOrd<A>, Z: PartialOrd<Z>, Y: PartialOrd<Y>, X: PartialOrd<X>, W: PartialOrd<W>, V: PartialOrd<V>, U: PartialOrd<U>, T: PartialOrd<T> + ?Sized,
source§fn partial_cmp(
&self,
other: &(E, D, C, B, A, Z, Y, X, W, V, U, T)
) -> Option<Ordering>
fn partial_cmp( &self, other: &(E, D, C, B, A, Z, Y, X, W, V, U, T) ) -> Option<Ordering>
source§fn lt(&self, other: &(E, D, C, B, A, Z, Y, X, W, V, U, T)) -> bool
fn lt(&self, other: &(E, D, C, B, A, Z, Y, X, W, V, U, T)) -> bool
source§fn le(&self, other: &(E, D, C, B, A, Z, Y, X, W, V, U, T)) -> bool
fn le(&self, other: &(E, D, C, B, A, Z, Y, X, W, V, U, T)) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl<T> PartialOrd<(T,)> for (T₁, T₂, …, Tₙ)where
T: PartialOrd<T> + ?Sized,
impl<T> PartialOrd<(T,)> for (T₁, T₂, …, Tₙ)where T: PartialOrd<T> + ?Sized,
This trait is implemented for tuples up to twelve items long.
source§fn le(&self, other: &(T,)) -> bool
fn le(&self, other: &(T,)) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl<U, T> PartialOrd<(U, T)> for (U, T)where
U: PartialOrd<U>,
T: PartialOrd<T> + ?Sized,
impl<U, T> PartialOrd<(U, T)> for (U, T)where U: PartialOrd<U>, T: PartialOrd<T> + ?Sized,
source§fn le(&self, other: &(U, T)) -> bool
fn le(&self, other: &(U, T)) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl<V, U, T> PartialOrd<(V, U, T)> for (V, U, T)where
V: PartialOrd<V>,
U: PartialOrd<U>,
T: PartialOrd<T> + ?Sized,
impl<V, U, T> PartialOrd<(V, U, T)> for (V, U, T)where V: PartialOrd<V>, U: PartialOrd<U>, T: PartialOrd<T> + ?Sized,
source§fn le(&self, other: &(V, U, T)) -> bool
fn le(&self, other: &(V, U, T)) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl<W, V, U, T> PartialOrd<(W, V, U, T)> for (W, V, U, T)where
W: PartialOrd<W>,
V: PartialOrd<V>,
U: PartialOrd<U>,
T: PartialOrd<T> + ?Sized,
impl<W, V, U, T> PartialOrd<(W, V, U, T)> for (W, V, U, T)where W: PartialOrd<W>, V: PartialOrd<V>, U: PartialOrd<U>, T: PartialOrd<T> + ?Sized,
source§fn partial_cmp(&self, other: &(W, V, U, T)) -> Option<Ordering>
fn partial_cmp(&self, other: &(W, V, U, T)) -> Option<Ordering>
source§fn lt(&self, other: &(W, V, U, T)) -> bool
fn lt(&self, other: &(W, V, U, T)) -> bool
source§fn le(&self, other: &(W, V, U, T)) -> bool
fn le(&self, other: &(W, V, U, T)) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl<X, W, V, U, T> PartialOrd<(X, W, V, U, T)> for (X, W, V, U, T)where
X: PartialOrd<X>,
W: PartialOrd<W>,
V: PartialOrd<V>,
U: PartialOrd<U>,
T: PartialOrd<T> + ?Sized,
impl<X, W, V, U, T> PartialOrd<(X, W, V, U, T)> for (X, W, V, U, T)where X: PartialOrd<X>, W: PartialOrd<W>, V: PartialOrd<V>, U: PartialOrd<U>, T: PartialOrd<T> + ?Sized,
source§fn partial_cmp(&self, other: &(X, W, V, U, T)) -> Option<Ordering>
fn partial_cmp(&self, other: &(X, W, V, U, T)) -> Option<Ordering>
source§fn lt(&self, other: &(X, W, V, U, T)) -> bool
fn lt(&self, other: &(X, W, V, U, T)) -> bool
source§fn le(&self, other: &(X, W, V, U, T)) -> bool
fn le(&self, other: &(X, W, V, U, T)) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl<Y, X, W, V, U, T> PartialOrd<(Y, X, W, V, U, T)> for (Y, X, W, V, U, T)where
Y: PartialOrd<Y>,
X: PartialOrd<X>,
W: PartialOrd<W>,
V: PartialOrd<V>,
U: PartialOrd<U>,
T: PartialOrd<T> + ?Sized,
impl<Y, X, W, V, U, T> PartialOrd<(Y, X, W, V, U, T)> for (Y, X, W, V, U, T)where Y: PartialOrd<Y>, X: PartialOrd<X>, W: PartialOrd<W>, V: PartialOrd<V>, U: PartialOrd<U>, T: PartialOrd<T> + ?Sized,
source§fn partial_cmp(&self, other: &(Y, X, W, V, U, T)) -> Option<Ordering>
fn partial_cmp(&self, other: &(Y, X, W, V, U, T)) -> Option<Ordering>
source§fn lt(&self, other: &(Y, X, W, V, U, T)) -> bool
fn lt(&self, other: &(Y, X, W, V, U, T)) -> bool
source§fn le(&self, other: &(Y, X, W, V, U, T)) -> bool
fn le(&self, other: &(Y, X, W, V, U, T)) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl<Z, Y, X, W, V, U, T> PartialOrd<(Z, Y, X, W, V, U, T)> for (Z, Y, X, W, V, U, T)where
Z: PartialOrd<Z>,
Y: PartialOrd<Y>,
X: PartialOrd<X>,
W: PartialOrd<W>,
V: PartialOrd<V>,
U: PartialOrd<U>,
T: PartialOrd<T> + ?Sized,
impl<Z, Y, X, W, V, U, T> PartialOrd<(Z, Y, X, W, V, U, T)> for (Z, Y, X, W, V, U, T)where Z: PartialOrd<Z>, Y: PartialOrd<Y>, X: PartialOrd<X>, W: PartialOrd<W>, V: PartialOrd<V>, U: PartialOrd<U>, T: PartialOrd<T> + ?Sized,
source§fn partial_cmp(&self, other: &(Z, Y, X, W, V, U, T)) -> Option<Ordering>
fn partial_cmp(&self, other: &(Z, Y, X, W, V, U, T)) -> Option<Ordering>
source§fn lt(&self, other: &(Z, Y, X, W, V, U, T)) -> bool
fn lt(&self, other: &(Z, Y, X, W, V, U, T)) -> bool
source§fn le(&self, other: &(Z, Y, X, W, V, U, T)) -> bool
fn le(&self, other: &(Z, Y, X, W, V, U, T)) -> bool
self
and other
) and is used by the <=
operator. Read more1.28.0 · source§impl<T> RangeBounds<T> for (Bound<T>, Bound<T>)
impl<T> RangeBounds<T> for (Bound<T>, Bound<T>)
1.53.0 · source§impl<T> SliceIndex<[T]> for (Bound<usize>, Bound<usize>)
impl<T> SliceIndex<[T]> for (Bound<usize>, Bound<usize>)
source§fn get(
self,
slice: &[T]
) -> Option<&<(Bound<usize>, Bound<usize>) as SliceIndex<[T]>>::Output>
fn get( self, slice: &[T] ) -> Option<&<(Bound<usize>, Bound<usize>) as SliceIndex<[T]>>::Output>
slice_index_methods
)source§fn get_mut(
self,
slice: &mut [T]
) -> Option<&mut <(Bound<usize>, Bound<usize>) as SliceIndex<[T]>>::Output>
fn get_mut( self, slice: &mut [T] ) -> Option<&mut <(Bound<usize>, Bound<usize>) as SliceIndex<[T]>>::Output>
slice_index_methods
)source§unsafe fn get_unchecked(
self,
slice: *const [T]
) -> *const <(Bound<usize>, Bound<usize>) as SliceIndex<[T]>>::Output
unsafe fn get_unchecked( self, slice: *const [T] ) -> *const <(Bound<usize>, Bound<usize>) as SliceIndex<[T]>>::Output
slice_index_methods
)slice
pointer
is undefined behavior even if the resulting reference is not used.source§unsafe fn get_unchecked_mut(
self,
slice: *mut [T]
) -> *mut <(Bound<usize>, Bound<usize>) as SliceIndex<[T]>>::Output
unsafe fn get_unchecked_mut( self, slice: *mut [T] ) -> *mut <(Bound<usize>, Bound<usize>) as SliceIndex<[T]>>::Output
slice_index_methods
)slice
pointer
is undefined behavior even if the resulting reference is not used.source§impl ToSocketAddrs for (&str, u16)
impl ToSocketAddrs for (&str, u16)
§type Iter = IntoIter<SocketAddr, Global>
type Iter = IntoIter<SocketAddr, Global>
source§fn to_socket_addrs(&self) -> Result<IntoIter<SocketAddr>>
fn to_socket_addrs(&self) -> Result<IntoIter<SocketAddr>>
SocketAddr
s. Read moresource§impl ToSocketAddrs for (IpAddr, u16)
impl ToSocketAddrs for (IpAddr, u16)
§type Iter = IntoIter<SocketAddr>
type Iter = IntoIter<SocketAddr>
source§fn to_socket_addrs(&self) -> Result<IntoIter<SocketAddr>>
fn to_socket_addrs(&self) -> Result<IntoIter<SocketAddr>>
SocketAddr
s. Read moresource§impl ToSocketAddrs for (Ipv4Addr, u16)
impl ToSocketAddrs for (Ipv4Addr, u16)
§type Iter = IntoIter<SocketAddr>
type Iter = IntoIter<SocketAddr>
source§fn to_socket_addrs(&self) -> Result<IntoIter<SocketAddr>>
fn to_socket_addrs(&self) -> Result<IntoIter<SocketAddr>>
SocketAddr
s. Read moresource§impl ToSocketAddrs for (Ipv6Addr, u16)
impl ToSocketAddrs for (Ipv6Addr, u16)
§type Iter = IntoIter<SocketAddr>
type Iter = IntoIter<SocketAddr>
source§fn to_socket_addrs(&self) -> Result<IntoIter<SocketAddr>>
fn to_socket_addrs(&self) -> Result<IntoIter<SocketAddr>>
SocketAddr
s. Read more1.46.0 · source§impl ToSocketAddrs for (String, u16)
impl ToSocketAddrs for (String, u16)
§type Iter = IntoIter<SocketAddr, Global>
type Iter = IntoIter<SocketAddr, Global>
source§fn to_socket_addrs(&self) -> Result<IntoIter<SocketAddr>>
fn to_socket_addrs(&self) -> Result<IntoIter<SocketAddr>>
SocketAddr
s. Read moreimpl<A, Z, Y, X, W, V, U, T> ConstParamTy for (A, Z, Y, X, W, V, U, T)where A: ConstParamTy, Z: ConstParamTy, Y: ConstParamTy, X: ConstParamTy, W: ConstParamTy, V: ConstParamTy, U: ConstParamTy, T: ConstParamTy,
impl<B, A, Z, Y, X, W, V, U, T> ConstParamTy for (B, A, Z, Y, X, W, V, U, T)where B: ConstParamTy, A: ConstParamTy, Z: ConstParamTy, Y: ConstParamTy, X: ConstParamTy, W: ConstParamTy, V: ConstParamTy, U: ConstParamTy, T: ConstParamTy,
impl<C, B, A, Z, Y, X, W, V, U, T> ConstParamTy for (C, B, A, Z, Y, X, W, V, U, T)where C: ConstParamTy, B: ConstParamTy, A: ConstParamTy, Z: ConstParamTy, Y: ConstParamTy, X: ConstParamTy, W: ConstParamTy, V: ConstParamTy, U: ConstParamTy, T: ConstParamTy,
impl<D, C, B, A, Z, Y, X, W, V, U, T> ConstParamTy for (D, C, B, A, Z, Y, X, W, V, U, T)where D: ConstParamTy, C: ConstParamTy, B: ConstParamTy, A: ConstParamTy, Z: ConstParamTy, Y: ConstParamTy, X: ConstParamTy, W: ConstParamTy, V: ConstParamTy, U: ConstParamTy, T: ConstParamTy,
impl<E, D, C, B, A, Z, Y, X, W, V, U, T> ConstParamTy for (E, D, C, B, A, Z, Y, X, W, V, U, T)where E: ConstParamTy, D: ConstParamTy, C: ConstParamTy, B: ConstParamTy, A: ConstParamTy, Z: ConstParamTy, Y: ConstParamTy, X: ConstParamTy, W: ConstParamTy, V: ConstParamTy, U: ConstParamTy, T: ConstParamTy,
impl<T> ConstParamTy for (T₁, T₂, …, Tₙ)where T: ConstParamTy,
This trait is implemented for tuples up to twelve items long.
impl<U, T> ConstParamTy for (U, T)where U: ConstParamTy, T: ConstParamTy,
impl<V, U, T> ConstParamTy for (V, U, T)where V: ConstParamTy, U: ConstParamTy, T: ConstParamTy,
impl<W, V, U, T> ConstParamTy for (W, V, U, T)where W: ConstParamTy, V: ConstParamTy, U: ConstParamTy, T: ConstParamTy,
impl<X, W, V, U, T> ConstParamTy for (X, W, V, U, T)where X: ConstParamTy, W: ConstParamTy, V: ConstParamTy, U: ConstParamTy, T: ConstParamTy,
impl<Y, X, W, V, U, T> ConstParamTy for (Y, X, W, V, U, T)where Y: ConstParamTy, X: ConstParamTy, W: ConstParamTy, V: ConstParamTy, U: ConstParamTy, T: ConstParamTy,
impl<Z, Y, X, W, V, U, T> ConstParamTy for (Z, Y, X, W, V, U, T)where Z: ConstParamTy, Y: ConstParamTy, X: ConstParamTy, W: ConstParamTy, V: ConstParamTy, U: ConstParamTy, T: ConstParamTy,
impl<T: Copy> Copy for (T₁, T₂, …, Tₙ)
This trait is implemented on arbitrary-length tuples.
impl<A, Z, Y, X, W, V, U, T> StructuralEq for (A, Z, Y, X, W, V, U, T)
impl<B, A, Z, Y, X, W, V, U, T> StructuralEq for (B, A, Z, Y, X, W, V, U, T)
impl<C, B, A, Z, Y, X, W, V, U, T> StructuralEq for (C, B, A, Z, Y, X, W, V, U, T)
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)
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)
impl<T> StructuralEq for (T₁, T₂, …, Tₙ)
This trait is implemented for tuples up to twelve items long.
impl<U, T> StructuralEq for (U, T)
impl<V, U, T> StructuralEq for (V, U, T)
impl<W, V, U, T> StructuralEq for (W, V, U, T)
impl<X, W, V, U, T> StructuralEq for (X, W, V, U, T)
impl<Y, X, W, V, U, T> StructuralEq for (Y, X, W, V, U, T)
impl<Z, Y, X, W, V, U, T> StructuralEq for (Z, Y, X, W, V, U, T)
impl<A, Z, Y, X, W, V, U, T> StructuralPartialEq for (A, Z, Y, X, W, V, U, T)
impl<B, A, Z, Y, X, W, V, U, T> StructuralPartialEq for (B, A, Z, Y, X, W, V, U, T)
impl<C, B, A, Z, Y, X, W, V, U, T> StructuralPartialEq for (C, B, A, Z, Y, X, W, V, U, T)
impl<D, C, B, A, Z, Y, X, W, V, U, T> StructuralPartialEq for (D, C, B, A, Z, Y, X, W, V, U, T)
impl<E, D, C, B, A, Z, Y, X, W, V, U, T> StructuralPartialEq for (E, D, C, B, A, Z, Y, X, W, V, U, T)
impl<T> StructuralPartialEq for (T₁, T₂, …, Tₙ)
This trait is implemented for tuples up to twelve items long.