[][src]Trait slice_group_by::StrGroupBy

pub trait StrGroupBy {
    fn linear_group_by<P>(&self, predicate: P) -> LinearStrGroupBy<P>
    where
        P: FnMut(char, char) -> bool
;
fn linear_group(&self) -> LinearStrGroup; }

A convenient trait to construct an iterator returning non-overlapping str slices defined by a predicate.

Required methods

Important traits for LinearStrGroupBy<'a, P>
fn linear_group_by<P>(&self, predicate: P) -> LinearStrGroupBy<P> where
    P: FnMut(char, char) -> bool

Returns an iterator on str groups using the linear search method.

Important traits for LinearStrGroup<'a>
fn linear_group(&self) -> LinearStrGroup

Returns an iterator on str groups based on the PartialEq::eq method of char, it uses linear search to iterate over groups.

Loading content...

Implementations on Foreign Types

impl StrGroupBy for str[src]

Loading content...

Implementors

Loading content...