equals_unordered
Returns true when a and b hold the same elements the same number of times, in any order.
Use it for collections where order is meaningless (tags, ids). For positional equality,
compare the slices with ==.
Import
Section titled “Import”Cargo feature array (enabled by default). To compile only this module:
or in Cargo.toml:
Signature
Section titled “Signature”Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
a | &[T] | The first slice. |
b | &[T] | The second slice. |
Returns
Section titled “Returns”bool
