pub trait TestableIterator: Iteratorwhere
Self: Sized,{
// Provided method
fn test(self) -> bool { ... }
}Expand description
This iterator implements a simple .test() method that just checks whether an iterator is
empty or yields results. It is implemented alongside traits like AnnotationIterator,
DataIterator, etc…
Provided 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.