pub trait CollectionExtensions<T> {
// Required methods
fn first(&self) -> Option<&T>;
fn last(&self) -> Option<&T>;
}Expand description
Extension trait for adding helper methods to collections
pub trait CollectionExtensions<T> {
// Required methods
fn first(&self) -> Option<&T>;
fn last(&self) -> Option<&T>;
}Extension trait for adding helper methods to collections