pub trait Collection {
type Item;
// Required methods
fn iter<'a>(&'a self) -> Box<dyn Iterator<Item = &'a Self::Item> + 'a>;
fn len(&self) -> usize;
// Provided method
fn is_empty(&self) -> bool { ... }
}Expand description
§============================================================================ QUERY VALUE BOUNDARIES
Explicit iteration contract for list/set wrapper types. Avoids implicit deref-based access to inner collections.