pub trait IteratorAssertions<T>{
// Required methods
fn contains(&self, expected_item: T);
fn contains_all(&self, expected_items: &[T]);
fn has_count(&self, expected_count: usize);
fn does_not_contain_any(&self, not_expected_items: &[T]);
fn is_empty(&self);
fn is_not_empty(&self);
}Required Methods§
Sourcefn contains_all(&self, expected_items: &[T])
fn contains_all(&self, expected_items: &[T])
Checks if the iterator contains the specified elements
Sourcefn does_not_contain_any(&self, not_expected_items: &[T])
fn does_not_contain_any(&self, not_expected_items: &[T])
Checks if the iterator does not contain any of the specified elements
Sourcefn is_not_empty(&self)
fn is_not_empty(&self)
Checks if the iterator is not empty