std.cmp.Equal
Equal[T]
A type that can be compared for equality.
Required methods
==
Show source codeHide source code
fn pub ==(other: T) -> Bool
fn pub ==(other: T) -> Bool
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.
Default 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.
Implementations
Array
impl Equal[ref Array[T]] for Array
if
T: Equal[ref T]
DecodeError
impl Equal[ref DecodeError] for DecodeError
Bool
impl Equal[ref Bool] for Bool
ByteArray
impl Equal[ref ByteArray] for ByteArray
Ordering
impl Equal[ref Ordering] for Ordering
Hash
impl Equal[ref Hash] for Hash
Item
impl Equal[ref Item] for Item
ParseError
impl Equal[ref ParseError] for ParseError
Certificate
impl Equal[ref Certificate] for Certificate
PrivateKey
impl Equal[ref PrivateKey] for PrivateKey
Float
impl Equal[ref Float] for Float
DirectoryEntry
impl Equal[ref DirectoryEntry] for DirectoryEntry
FileType
impl Equal[ref FileType] for FileType
Path
impl Equal[ref Path] for Path
Int
impl Equal[ref Int] for Int
Error
impl Equal[ref Error] for Error
Error
impl Equal[ref Error] for Error
ErrorKind
impl Equal[ref ErrorKind] for ErrorKind
Json
impl Equal[ref Json] for Json
Number
impl Equal[ref Number] for Number
Type
impl Equal[ref Type] for Type
Map
impl Equal[ref Map[K, V]] for Map
if
V: Equal[ref V]
IpAddress
impl Equal[ref IpAddress] for IpAddress
Ipv4Address
impl Equal[ref Ipv4Address] for Ipv4Address
Ipv6Address
impl Equal[ref Ipv6Address] for Ipv6Address
SocketAddress
impl Equal[ref SocketAddress] for SocketAddress
UnixAddress
impl Equal[ref UnixAddress] for UnixAddress
ServerConfigError
impl Equal[ref ServerConfigError] for ServerConfigError
Nil
impl Equal[ref Nil] for Nil
Option
impl Equal[ref Option[T]] for Option
if
T: Equal[ref T]
Error
impl Equal[ref Error] for Error
ExclusiveRange
impl Equal[ref ExclusiveRange] for ExclusiveRange
InclusiveRange
impl Equal[ref InclusiveRange] for InclusiveRange
Result
impl Equal[ref Result[T, E]] for Result
if
E: Equal[ref E],
T: Equal[ref T]
Set
impl Equal[ref Set[V]] for Set
Signal
impl Equal[ref Signal] for Signal
String
impl Equal[ref String] for String
Filter
impl Equal[ref Filter] for Filter
DateTime
impl Equal[ref DateTime] for DateTime
Duration
impl Equal[ref Duration] for Duration
Instant
impl Equal[ref Instant] for Instant
Tuple1
impl Equal[ref (A)] for Tuple1
if
A: Equal[ref A]
Tuple2
impl Equal[ref (A, B)] for Tuple2
if
A: Equal[ref A],
B: Equal[ref B]
Tuple3
impl Equal[ref (A, B, C)] for Tuple3
if
A: Equal[ref A],
B: Equal[ref B],
C: Equal[ref C]
Tuple4
impl Equal[ref (A, B, C, D)] for Tuple4
if
A: Equal[ref A],
B: Equal[ref B],
C: Equal[ref C],
D: Equal[ref D]
Tuple5
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]
Tuple6
impl Equal[ref (A, B, C, D, E, F)] for Tuple6
if
A: Equal[ref A],
B: Equal[ref B],
C: Equal[ref C],
D: Equal[ref D],
E: Equal[ref E],
F: Equal[ref F]
Tuple7
impl Equal[ref (A, B, C, D, E, F, G)] for Tuple7
if
A: Equal[ref A],
B: Equal[ref B],
C: Equal[ref C],
D: Equal[ref D],
E: Equal[ref E],
F: Equal[ref F],
G: Equal[ref G]
Tuple8
impl Equal[ref (A, B, C, D, E, F, G, H)] for Tuple8
if
A: Equal[ref A],
B: Equal[ref B],
C: Equal[ref C],
D: Equal[ref D],
E: Equal[ref E],
F: Equal[ref F],
G: Equal[ref G],
H: Equal[ref H]