pub struct InplacePermutator;Expand description
Simple permutator that does not allocate.
Worst-case runtime is in O(n^2), so you should only use this for small permutations.
Trait Implementations§
Source§impl Clone for InplacePermutator
impl Clone for InplacePermutator
Source§fn clone(&self) -> InplacePermutator
fn clone(&self) -> InplacePermutator
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for InplacePermutator
Source§impl Debug for InplacePermutator
impl Debug for InplacePermutator
Source§impl Default for InplacePermutator
impl Default for InplacePermutator
Source§fn default() -> InplacePermutator
fn default() -> InplacePermutator
Returns the “default value” for a type. Read more
Source§impl<T, P: ?Sized + Permutation> Permutator<T, P> for InplacePermutator
impl<T, P: ?Sized + Permutation> Permutator<T, P> for InplacePermutator
Auto Trait Implementations§
impl Freeze for InplacePermutator
impl RefUnwindSafe for InplacePermutator
impl Send for InplacePermutator
impl Sync for InplacePermutator
impl Unpin for InplacePermutator
impl UnsafeUnpin for InplacePermutator
impl UnwindSafe for InplacePermutator
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more