std.tuple.Tuple5
class pub Tuple5[A, B, C, D, E]
A 5-ary tuple.
Fields
0
let pub @0: A
1
let pub @1: B
2
let pub @2: C
3
let pub @3: D
4
let pub @4: E
Instance methods
!=
Show source codeHide source code
fn pub !=(other: T) -> Bool {
(self == other).false?
}
fn pub !=(other: T) -> Bool
Returns true
if self
and the given object are not equal to each other.
==
Show source codeHide source code
fn pub ==(other: ref Tuple5[A, B, C, D, E]) -> Bool {
@0 == other.0
and @1 == other.1
and @2 == other.2
and @3 == other.3
and @4 == other.4
}
fn pub ==(other: ref (A, B, C, D, E)) -> Bool
if
A: Equal[ref A],
B: Equal[ref B],
C: Equal[ref C],
D: Equal[ref D],
E: Equal[ref E]
Returns true
if self
and the given object are equal to each other.
This operator is used to perform structural equality. This means two objects residing in different memory locations may be considered equal, provided their structure is equal. For example, two different arrays may be considered to have structural equality if they contain the exact same values.
clone
Show source codeHide source code
fn pub clone -> Tuple5[A, B, C, D, E] {
(@0.clone, @1.clone, @2.clone, @3.clone, @4.clone)
}
fn pub clone -> (A, B, C, D, E)
if
A: Clone[A],
B: Clone[B],
C: Clone[C],
D: Clone[D],
E: Clone[E]
Creates a clone of self
.
fmt
Show source codeHide source code
fn pub fmt(formatter: mut Formatter) {
formatter.tuple('').field(@0).field(@1).field(@2).field(@3).field(@4).finish
}
fn pub fmt(formatter: mut Formatter)
if
A: Format,
B: Format,
C: Format,
D: Format,
E: Format
Formats self
in a human-readable format for debugging purposes.
hash
Show source codeHide source code
fn pub hash[H: mut + Hasher](hasher: mut H) {
@0.hash(hasher)
@1.hash(hasher)
@2.hash(hasher)
@3.hash(hasher)
@4.hash(hasher)
}
fn pub hash[H: mut + Hasher](hasher: mut H: mut)
if
A: Hash,
B: Hash,
C: Hash,
D: Hash,
E: Hash
Writes the hash for self
into the given Hasher
.
Implemented traits
Clone
impl Clone[(A, B, C, D, E)] for Tuple5
if
A: Clone[A],
B: Clone[B],
C: Clone[C],
D: Clone[D],
E: Clone[E]
Equal
impl Equal[ref (A, B, C, D, E)] for Tuple5
if
A: Equal[ref A],
B: Equal[ref B],
C: Equal[ref C],
D: Equal[ref D],
E: Equal[ref E]
Format
impl Format for Tuple5
if
A: Format,
B: Format,
C: Format,
D: Format,
E: Format
Hash
impl Hash for Tuple5
if
A: Hash,
B: Hash,
C: Hash,
D: Hash,
E: Hash