symmetric_difference
Returns the elements present in exactly one of a and b.
The result is the elements of a missing from b (in a’s order), followed by the elements
of b missing from a (in b’s order). Duplicates are kept.
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”Vec<T>
