bevy_ecs::system

Trait BuildableSystemParam

Source
pub trait BuildableSystemParam: SystemParam {
    type Builder<'b>;

    // Required method
    fn build(
        world: &mut World,
        meta: &mut SystemMeta,
        func: impl FnOnce(&mut Self::Builder<'_>),
    ) -> Self::State;
}
Expand description

A parameter that can be built with SystemBuilder

Required Associated Types§

Source

type Builder<'b>

A mutable reference to this type will be passed to the builder function

Required Methods§

Source

fn build( world: &mut World, meta: &mut SystemMeta, func: impl FnOnce(&mut Self::Builder<'_>), ) -> Self::State

Constructs SystemParam::State for Self using a given builder function

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<'w, 's, D: QueryData + 'static, F: QueryFilter + 'static> BuildableSystemParam for Query<'w, 's, D, F>

Source§

type Builder<'b> = QueryBuilder<'b, D, F>

Source§

impl<'w, T: FromWorld + Send + 'static> BuildableSystemParam for Local<'w, T>

Source§

type Builder<'b> = T