reactive_graph_behaviour_model_api/
container.rs1use crate::BehaviourTypeId;
2use crate::BehaviourTypeIds;
3
4pub trait BehaviourTypeContainer {
5 fn ty(&self) -> BehaviourTypeId;
6}
7
8pub trait BehaviourTypesContainer {
9 fn get_behaviours(&self) -> Vec<BehaviourTypeId>;
11
12 fn add_behaviour(&self, ty: BehaviourTypeId);
14
15 fn remove_behaviour(&self, ty: &BehaviourTypeId);
17
18 fn behaves_as(&self, ty: &BehaviourTypeId) -> bool;
20
21 fn behaves_as_all(&self, tys: &BehaviourTypeIds) -> bool;
23}