pub trait IteratorExt {
// Required method
fn has_single_element(&mut self) -> bool;
}Required Methods§
Sourcefn has_single_element(&mut self) -> bool
fn has_single_element(&mut self) -> bool
Returns true if the given iterator consists of exactly one element