[][src]Trait flatk::SplitOff

pub trait SplitOff {
    fn split_off(&mut self, mid: usize) -> Self;
}

A helper trait to split owned sets into two sets at a given index. This trait is used to implement iteration over Chunkeds.

Required methods

fn split_off(&mut self, mid: usize) -> Self

Split self into two sets at the given midpoint. This function is analogous to Vec::split_off. self contains elements [0, mid), and The returned Self contains elements [mid, len).

Loading content...

Implementations on Foreign Types

impl<S, T> SplitOff for (S, T) where
    S: SplitOff,
    T: SplitOff
[src]

impl<T> SplitOff for Vec<T>[src]

Loading content...

Implementors

impl<S: SplitOff + Set> SplitOff for Chunked<S>[src]

Loading content...