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>,
);
}
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>, )
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.