Search results

There are no results.

std.cmp.Equal

Equal[T]

A type that can be compared for equality.

Required methods

==

Show source code
Hide 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 code
Hide 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

std.array.

Array

impl Equal[ref Array[T]] for Array
if
  T: Equal[ref T]
std.bool.

Bool

impl Equal[ref Bool] for Bool
std.byte_array.

ByteArray

impl Equal[ref ByteArray] for ByteArray
std.cmp.

Ordering

impl Equal[ref Ordering] for Ordering
std.crypto.hash.

Hash

impl Equal[ref Hash] for Hash
std.float.

Float

impl Equal[ref Float] for Float
std.fs.

DirectoryEntry

impl Equal[ref DirectoryEntry] for DirectoryEntry
std.fs.

FileType

impl Equal[ref FileType] for FileType
std.fs.path.

Path

impl Equal[ref Path] for Path
std.int.

Int

impl Equal[ref Int] for Int
std.io.

Error

impl Equal[ref Error] for Error
std.json.

Error

impl Equal[ref Error] for Error
std.json.

ErrorKind

impl Equal[ref ErrorKind] for ErrorKind
std.json.

Json

impl Equal[ref Json] for Json
std.json.

Number

impl Equal[ref Number] for Number
std.json.

Type

impl Equal[ref Type] for Type
std.map.

Map

impl Equal[ref Map[K, V]] for Map
if
  V: Equal[ref V]
std.net.ip.

IpAddress

impl Equal[ref IpAddress] for IpAddress
std.net.ip.

Ipv4Address

impl Equal[ref Ipv4Address] for Ipv4Address
std.net.ip.

Ipv6Address

impl Equal[ref Ipv6Address] for Ipv6Address
std.net.socket.

SocketAddress

impl Equal[ref SocketAddress] for SocketAddress
std.net.socket.

UnixAddress

impl Equal[ref UnixAddress] for UnixAddress
std.nil.

Nil

impl Equal[ref Nil] for Nil
std.option.

Option

impl Equal[ref Option[T]] for Option
if
  T: Equal[ref T]
std.optparse.

Error

impl Equal[ref Error] for Error
std.range.

ExclusiveRange

impl Equal[ref ExclusiveRange] for ExclusiveRange
std.range.

InclusiveRange

impl Equal[ref InclusiveRange] for InclusiveRange
std.result.

Result

impl Equal[ref Result[T, E]] for Result
if
  E: Equal[ref E],
  T: Equal[ref T]
std.set.

Set

impl Equal[ref Set[V]] for Set
std.signal.

Signal

impl Equal[ref Signal] for Signal
std.string.

String

impl Equal[ref String] for String
std.test.

Filter

impl Equal[ref Filter] for Filter
std.time.

DateTime

impl Equal[ref DateTime] for DateTime
std.time.

Duration

impl Equal[ref Duration] for Duration
std.time.

Instant

impl Equal[ref Instant] for Instant
std.tuple.

Tuple1

impl Equal[ref (A)] for Tuple1
if
  A: Equal[ref A]
std.tuple.

Tuple2

impl Equal[ref (A, B)] for Tuple2
if
  A: Equal[ref A],
  B: Equal[ref B]
std.tuple.

Tuple3

impl Equal[ref (A, B, C)] for Tuple3
if
  A: Equal[ref A],
  B: Equal[ref B],
  C: Equal[ref C]
std.tuple.

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]
std.tuple.

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]
std.tuple.

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]
std.tuple.

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]
std.tuple.

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]