pub struct FilteredResourcesMutParamBuilder<T>(/* private fields */);
Expand description
A SystemParamBuilder
for a FilteredResourcesMut
.
See the FilteredResourcesMut
docs for examples.
Implementations§
Source§impl<T> FilteredResourcesMutParamBuilder<T>
impl<T> FilteredResourcesMutParamBuilder<T>
Sourcepub fn new(f: T) -> Selfwhere
T: FnOnce(&mut FilteredResourcesMutBuilder<'_>),
pub fn new(f: T) -> Selfwhere
T: FnOnce(&mut FilteredResourcesMutBuilder<'_>),
Creates a SystemParamBuilder
for a FilteredResourcesMut
that accepts a callback to configure the FilteredResourcesMutBuilder
.
Source§impl<'a> FilteredResourcesMutParamBuilder<Box<dyn FnOnce(&mut FilteredResourcesMutBuilder<'_>) + 'a>>
impl<'a> FilteredResourcesMutParamBuilder<Box<dyn FnOnce(&mut FilteredResourcesMutBuilder<'_>) + 'a>>
Sourcepub fn new_box(
f: impl FnOnce(&mut FilteredResourcesMutBuilder<'_>) + 'a,
) -> Self
pub fn new_box( f: impl FnOnce(&mut FilteredResourcesMutBuilder<'_>) + 'a, ) -> Self
Creates a SystemParamBuilder
for a FilteredResourcesMut
that accepts a callback to configure the FilteredResourcesMutBuilder
.
This boxes the callback so that it has a common type.
Trait Implementations§
Source§impl<'w, 's, T: FnOnce(&mut FilteredResourcesMutBuilder<'_>)> SystemParamBuilder<FilteredResourcesMut<'w, 's>> for FilteredResourcesMutParamBuilder<T>
impl<'w, 's, T: FnOnce(&mut FilteredResourcesMutBuilder<'_>)> SystemParamBuilder<FilteredResourcesMut<'w, 's>> for FilteredResourcesMutParamBuilder<T>
Source§fn build(
self,
world: &mut World,
meta: &mut SystemMeta,
) -> <FilteredResourcesMut<'w, 's> as SystemParam>::State
fn build( self, world: &mut World, meta: &mut SystemMeta, ) -> <FilteredResourcesMut<'w, 's> as SystemParam>::State
Registers any
World
access used by this SystemParam
and creates a new instance of this param’s State
.Source§fn build_state(self, world: &mut World) -> SystemState<P>
fn build_state(self, world: &mut World) -> SystemState<P>
Create a
SystemState
from a SystemParamBuilder
.
To create a system, call SystemState::build_system
on the result.Auto Trait Implementations§
impl<T> Freeze for FilteredResourcesMutParamBuilder<T>where
T: Freeze,
impl<T> RefUnwindSafe for FilteredResourcesMutParamBuilder<T>where
T: RefUnwindSafe,
impl<T> Send for FilteredResourcesMutParamBuilder<T>where
T: Send,
impl<T> Sync for FilteredResourcesMutParamBuilder<T>where
T: Sync,
impl<T> Unpin for FilteredResourcesMutParamBuilder<T>where
T: Unpin,
impl<T> UnwindSafe for FilteredResourcesMutParamBuilder<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.