Trait collections::slice::ImmutableCloneableVector[src]

pub trait ImmutableCloneableVector<T> {
    fn partitioned(&self, f: |&T| -> bool) -> (Vec<T>, Vec<T>);
    fn permutations(self) -> Permutations<T>;
}

Extension methods for vectors containing Clone elements.

Required Methods

fn partitioned(&self, f: |&T| -> bool) -> (Vec<T>, Vec<T>)

Partitions the vector into two vectors (A,B), where all elements of A satisfy f and all elements of B do not.

fn permutations(self) -> Permutations<T>

Create an iterator that yields every possible permutation of the vector in succession.

Implementors