privmx.FileVector
An extension for FileVector to conform to the Hashable protocol.
This extension allows comparing two FileVector instances and generating
a hash value for usage in hash-based collections, such as dictionaries or sets.
Static Methods
==(::)
Compares two FileVector instances for equality.
This function compares the contents of two FileVector instances by calling the privmx.compareVectors function.
Params
lhs
privmx.FileVector
The left-hand side FileVector instance.
rhs
privmx.FileVector
The right-hand side FileVector instance.
Returns
Bool ·
true if both vectors are equal, otherwise false.
Methods
hash(into:)
Generates a hash value for the FileVector.
This function generates the hash based on the count of the vector.
Params
hasher
inout Hasher
The Hasher instance used to compute the hash value.
We use cookies on our website. We use them to ensure the proper functioning of the site and, if you agree, for purposes we set, such as analytics or marketing.