Struct hilbert::permutation::Permutation [−][src]
pub struct Permutation { /* fields omitted */ }
Expand description
Defines a one-to-one mapping from one ordering of values to another. This can be used to rearrange the coordinates in a Point.
No coordinate value is lost or duplicated, so long as every value from 0 to dimensions - 1 is present in the moves_to
collection.
Implementations
Create a Permutation that causes no changes to the order of dimensions if applied to a Point.
Create a random permutation which will cause almost every dimension to be shifted to a new position.
Create a new Permutation where the two given dimensions are swapped.
This is useful for controlled permutation, unlike the chaotically scrambled
Permutations
generated by the random
method.
Number of dimensions of points that can be handled by the permutation.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for Permutation
impl Send for Permutation
impl Sync for Permutation
impl Unpin for Permutation
impl UnwindSafe for Permutation
Blanket Implementations
Mutably borrows from an owned value. Read more