[][src]Trait superslice::Ext2

pub trait Ext2 {
    fn invert_permutation(&mut self);
}

Required methods

fn invert_permutation(&mut self)

Transforms the slice in the inverse permutation.

Panics

This function panics if any value in self is not in 0..self.len().

Example:

let mut p = [1, 3, 2, 0];
p.invert_permutation();
assert_eq!(p, [3, 0, 2, 1]);
Loading content...

Implementations on Foreign Types

impl Ext2 for [isize][src]

Loading content...

Implementors

Loading content...