Trait slice_group_by::StrGroupByMut
source · pub trait StrGroupByMut {
// Required methods
fn linear_group_by_key_mut<F, K>(
&mut self,
func: F,
) -> LinearStrGroupByKeyMut<'_, F> ⓘ
where F: FnMut(char) -> K,
K: PartialEq;
fn linear_group_by_mut<P>(
&mut self,
predicate: P,
) -> LinearStrGroupByMut<'_, P> ⓘ
where P: FnMut(char, char) -> bool;
fn linear_group_mut(&mut self) -> LinearStrGroupMut<'_> ⓘ;
}
Expand description
A convenient trait to construct an iterator returning non-overlapping mutable str
slices
defined by a predicate.
Required Methods§
sourcefn linear_group_by_key_mut<F, K>(
&mut self,
func: F,
) -> LinearStrGroupByKeyMut<'_, F> ⓘ
fn linear_group_by_key_mut<F, K>( &mut self, func: F, ) -> LinearStrGroupByKeyMut<'_, F> ⓘ
Returns an iterator on mutable str
groups based that will use the given function
to generate keys and determine groups based on them. It uses linear search
to iterate over groups.
sourcefn linear_group_by_mut<P>(&mut self, predicate: P) -> LinearStrGroupByMut<'_, P> ⓘ
fn linear_group_by_mut<P>(&mut self, predicate: P) -> LinearStrGroupByMut<'_, P> ⓘ
Returns an iterator on mutable str
groups using the linear search method.
sourcefn linear_group_mut(&mut self) -> LinearStrGroupMut<'_> ⓘ
fn linear_group_mut(&mut self) -> LinearStrGroupMut<'_> ⓘ
Returns an iterator on mutable str
groups based on the PartialEq::eq
method of char
,
it uses linear search to iterate over groups.
Object Safety§
This trait is not object safe.