Trait valence::ecs::system::BuildableSystemParam

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§

type Builder<'b>

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

Required Methods§

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

Object Safety§

This trait is not object safe.

Implementors§

§

impl<'w, 's, D, F> BuildableSystemParam for Query<'w, 's, D, F>
where D: QueryData + 'static, F: QueryFilter + 'static,

§

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

§

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

§

type Builder<'b> = T