pub trait Bag: Sealed + Copy {
// Required methods
fn get<T: 'static>(&self) -> Option<&T>;
fn get_mut<T: 'static>(&mut self) -> Option<&mut T>;
// Provided method
fn insert<T: 'static>(self, head: T) -> List<T, Self> { ... }
}
Expand description
A heterogeneous collection to store property values.