Instance Method

hash(into:)

Hashes the essential components of the entity by feeding them into the given hash function.

Declaration

func hash(into hasher: inout Hasher)

Parameters

hasher

The hash function to use when combining the components of the entity.

Relationships

From Protocol

See Also

Comparing Entities

static func == (Entity, Entity) -> Bool

Indicates whether two entities are equal.

static func != (Entity, Entity) -> Bool

Indicates whether two entities are not equal.

var hashValue: Int

The hashed value of the entity.