Trait bevy_app::PluginGroup
source · pub trait PluginGroup: Sized {
// Required method
fn build(self) -> PluginGroupBuilder;
// Provided methods
fn name() -> String { ... }
fn set<T: Plugin>(self, plugin: T) -> PluginGroupBuilder { ... }
}
Expand description
Combines multiple Plugin
s into a single unit.
Required Methods§
sourcefn build(self) -> PluginGroupBuilder
fn build(self) -> PluginGroupBuilder
Configures the Plugin
s that are to be added.
Provided Methods§
sourcefn name() -> String
fn name() -> String
Configures a name for the PluginGroup
which is primarily used for debugging.
sourcefn set<T: Plugin>(self, plugin: T) -> PluginGroupBuilder
fn set<T: Plugin>(self, plugin: T) -> PluginGroupBuilder
Sets the value of the given Plugin
, if it exists
Object Safety§
This trait is not object safe.