Trait bevy_compose::compose::Compose
source · pub trait Compose: Send + Sync + 'static {
type State: Send + Sync + 'static;
// Required methods
fn build(
&mut self,
world: &mut World,
children: &mut Vec<Entity>
) -> Self::State;
fn rebuild(
&mut self,
target: &mut Self,
state: &mut Self::State,
world: &mut World,
children: &mut Vec<Entity>
);
// Provided method
fn remove(&mut self, _state: &mut Self::State) { ... }
}Required Associated Types§
Required Methods§
fn build( &mut self, world: &mut World, children: &mut Vec<Entity> ) -> Self::State
fn rebuild( &mut self, target: &mut Self, state: &mut Self::State, world: &mut World, children: &mut Vec<Entity> )
Provided Methods§
Object Safety§
This trait is not object safe.