pub trait ObjectContainerComponent: Component {
// Required methods
fn count(&self) -> usize;
fn object_at(&self, index: usize) -> Option<Object>;
fn add_object(&self, object: &Object);
fn remove_object(&self, object: &Object);
// Provided method
fn objects(&self) -> Vec<Object> { ... }
}Expand description
Mirrors the corresponding Model I/O object container component: component protocol counterpart.