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§
Sourcefn get_behaviours(&self) -> Vec<BehaviourTypeId>
fn get_behaviours(&self) -> Vec<BehaviourTypeId>
Returns the behaviour types of the container.
Sourcefn add_behaviour(&self, ty: BehaviourTypeId)
fn add_behaviour(&self, ty: BehaviourTypeId)
Adds a behaviour to the container.
Sourcefn remove_behaviour(&self, ty: &BehaviourTypeId)
fn remove_behaviour(&self, ty: &BehaviourTypeId)
Removes a behaviour from the container.
Sourcefn behaves_as(&self, ty: &BehaviourTypeId) -> bool
fn behaves_as(&self, ty: &BehaviourTypeId) -> bool
Returns true, if the reactive instance behaves as the given behaviour.