pub struct StackCopyPermutator;Expand description
Simple permutator that stack-allocates a copy of the data (using recursion).
Worst-case runtime is O(n), but this takes O(n) stack space so it WILL NOT work for large permutations.
Trait Implementations§
Source§impl Clone for StackCopyPermutator
impl Clone for StackCopyPermutator
Source§fn clone(&self) -> StackCopyPermutator
fn clone(&self) -> StackCopyPermutator
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 StackCopyPermutator
Source§impl Debug for StackCopyPermutator
impl Debug for StackCopyPermutator
Source§impl Default for StackCopyPermutator
impl Default for StackCopyPermutator
Source§fn default() -> StackCopyPermutator
fn default() -> StackCopyPermutator
Returns the “default value” for a type. Read more
Source§impl<T: Clone, P: ?Sized + Permutation> Permutator<T, P> for StackCopyPermutator
impl<T: Clone, P: ?Sized + Permutation> Permutator<T, P> for StackCopyPermutator
Auto Trait Implementations§
impl Freeze for StackCopyPermutator
impl RefUnwindSafe for StackCopyPermutator
impl Send for StackCopyPermutator
impl Sync for StackCopyPermutator
impl Unpin for StackCopyPermutator
impl UnsafeUnpin for StackCopyPermutator
impl UnwindSafe for StackCopyPermutator
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