Skip to main content

ObjectContainerComponent

Trait ObjectContainerComponent 

Source
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.

Required Methods§

Source

fn count(&self) -> usize

Source

fn object_at(&self, index: usize) -> Option<Object>

Source

fn add_object(&self, object: &Object)

Source

fn remove_object(&self, object: &Object)

Provided Methods§

Source

fn objects(&self) -> Vec<Object>

Implementors§