pub struct HeapCopyPermutator<T> { /* private fields */ }Expand description
Simple permutator that heap-allocates a copy of the data.
Worst-case runtime is O(n), taking O(n) heap space in a reusable buffer.
This is an acceptable permutator for large permutations, provided that the data
is (efficiently) cloneable.
Trait Implementations§
Source§impl<T: Debug> Debug for HeapCopyPermutator<T>
impl<T: Debug> Debug for HeapCopyPermutator<T>
Source§impl<T: Default> Default for HeapCopyPermutator<T>
impl<T: Default> Default for HeapCopyPermutator<T>
Source§fn default() -> HeapCopyPermutator<T>
fn default() -> HeapCopyPermutator<T>
Returns the “default value” for a type. Read more
Source§impl<T: Clone, P: ?Sized + Permutation> Permutator<T, P> for HeapCopyPermutator<T>
impl<T: Clone, P: ?Sized + Permutation> Permutator<T, P> for HeapCopyPermutator<T>
Auto Trait Implementations§
impl<T> Freeze for HeapCopyPermutator<T>
impl<T> RefUnwindSafe for HeapCopyPermutator<T>where
T: RefUnwindSafe,
impl<T> Send for HeapCopyPermutator<T>where
T: Send,
impl<T> Sync for HeapCopyPermutator<T>where
T: Sync,
impl<T> Unpin for HeapCopyPermutator<T>where
T: Unpin,
impl<T> UnsafeUnpin for HeapCopyPermutator<T>
impl<T> UnwindSafe for HeapCopyPermutator<T>where
T: UnwindSafe,
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