pub trait Splittable<I>where
I: Iterator,{
// Required method
fn split<P>(self, predicate: P) -> (Split<I, P>, Split<I, P>)
where P: FnMut(&I::Item) -> bool;
}
Expand description
Provides an iterator adaptor method that splits an iterator into two iterators according to a predicate.
Required Methods§
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.