Trait BehaviourTypesContainer

Source
pub trait BehaviourTypesContainer {
    // Required methods
    fn get_behaviours(&self) -> Vec<BehaviourTypeId>;
    fn add_behaviour(&self, ty: BehaviourTypeId);
    fn remove_behaviour(&self, ty: &BehaviourTypeId);
    fn behaves_as(&self, ty: &BehaviourTypeId) -> bool;
}

Required Methods§

Source

fn get_behaviours(&self) -> Vec<BehaviourTypeId>

Returns the behaviour types of the container.

Source

fn add_behaviour(&self, ty: BehaviourTypeId)

Adds a behaviour to the container.

Source

fn remove_behaviour(&self, ty: &BehaviourTypeId)

Removes a behaviour from the container.

Source

fn behaves_as(&self, ty: &BehaviourTypeId) -> bool

Returns true, if the reactive instance behaves as the given behaviour.

Implementors§