Trait std::slice::ImmutableCloneableVector[src]
pub trait ImmutableCloneableVector<T> {
fn partitioned<T>(&self, f: |&T| -> bool) -> (Vec<T>, Vec<T>);
fn permutations<T>(self) -> Permutations<T>;
}Extension methods for vectors containing Clone elements.
Required Methods
fn partitioned<T>(&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<T>(self) -> Permutations<T>
Create an iterator that yields every possible permutation of the vector in succession.
Implementors
impl<'a, T: Clone> ImmutableCloneableVector<T> for &'a [T]