Trait cuicui_dsl::DslBundle
source · pub trait DslBundle: Default {
// Required method
fn insert(&mut self, cmds: &mut EntityCommands<'_, '_, '_>);
// Provided method
fn node(
&mut self,
cmds: &mut EntityCommands<'_, '_, '_>,
f: impl FnOnce(&mut ChildBuilder<'_, '_, '_>)
) { ... }
}
Expand description
Required Methods§
sourcefn insert(&mut self, cmds: &mut EntityCommands<'_, '_, '_>)
fn insert(&mut self, cmds: &mut EntityCommands<'_, '_, '_>)
Add given Bundle
to the entity.
Provided Methods§
sourcefn node(
&mut self,
cmds: &mut EntityCommands<'_, '_, '_>,
f: impl FnOnce(&mut ChildBuilder<'_, '_, '_>)
)
fn node( &mut self, cmds: &mut EntityCommands<'_, '_, '_>, f: impl FnOnce(&mut ChildBuilder<'_, '_, '_>) )
Spawn the entity as a parent of other entities.
Object Safety§
This trait is not object safe.