privmx.StringVector
An extension for StringVector to conform to the Hashable protocol.
This extension allows comparing two StringVector instances and generating
a hash value for usage in hash-based collections, such as dictionaries or sets.
Static Methods
==(::)
Compares two StringVector instances for equality.
This function compares the contents of two StringVector instances by calling the privmx.compareVectors function.
Params
lhs
privmx.StringVector
The left-hand side StringVector instance.
rhs
privmx.StringVector
The right-hand side StringVector instance.
Returns
Bool ·
true if both vectors are equal, otherwise false.
Methods
hash(into:)
Generates a hash value for the StringVector.
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.
This is documentation for PrivMX v2.3, which is no longer actively maintained.