pub trait Queryable<T> {
// Required method
fn query_iter(&self) -> Box<dyn Iterator<Item = &T> + '_>;
}Expand description
Trait for types that can be queried.
Implemented for standard collections like Vec, HashMap, HashSet, etc.
Required Methods§
Sourcefn query_iter(&self) -> Box<dyn Iterator<Item = &T> + '_>
fn query_iter(&self) -> Box<dyn Iterator<Item = &T> + '_>
Returns an iterator over references to items.