SwapChunks

Trait SwapChunks 

Source
pub trait SwapChunks {
    // Required method
    fn swap_chunks(&mut self, begin_a: usize, begin_b: usize, chunk_size: usize);
}

Required Methods§

Source

fn swap_chunks(&mut self, begin_a: usize, begin_b: usize, chunk_size: usize)

Swap equal sized contiguous chunks in this collection.

Implementations on Foreign Types§

Source§

impl<T> SwapChunks for &mut [T]

Source§

fn swap_chunks(&mut self, i: usize, j: usize, chunk_size: usize)

Swap non-overlapping chunks beginning at the given indices.

Implementors§