Modify

Trait Modify 

Source
pub trait Modify: Sized {
    // Required method
    fn modifier(&mut self) -> &mut Modifier;
}
Expand description

The Modify trait is used to modify entities before they are spawned or recomposed. It is used to add children and observers to the entity. See the Modifier struct for more information.

Required Methods§

Source

fn modifier(&mut self) -> &mut Modifier

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.

Implementors§

Source§

impl<B: Bundle + Clone> Modify for Spawn<B>