pub trait Get<T>: CollectionRef {
// Required method
fn get(&self, key: T) -> Option<Self::ItemRef<'_>>;
// Provided method
fn contains(&self, key: T) -> bool { ... }
}
Expand description
Queryable collection.
pub trait Get<T>: CollectionRef {
// Required method
fn get(&self, key: T) -> Option<Self::ItemRef<'_>>;
// Provided method
fn contains(&self, key: T) -> bool { ... }
}
Queryable collection.