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