SliceExt

Trait SliceExt 

Source
pub trait SliceExt<T> {
    // Required method
    fn group_by<P>(&self, predicate: P) -> GroupBy<'_, T, P> 
       where P: Fn(&T, &T) -> bool;
}

Required Methods§

Source

fn group_by<P>(&self, predicate: P) -> GroupBy<'_, T, P>
where P: Fn(&T, &T) -> bool,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<T> SliceExt<T> for [T]

Source§

fn group_by<P>(&self, predicate: P) -> GroupBy<'_, T, P>
where P: Fn(&T, &T) -> bool,

Implementors§