pub struct ParamSet<'w, T: 'static + SystemParam>(/* private fields */);Implementations§
Source§impl<'w, P0: SystemParam + 'static> ParamSet<'w, (P0,)>
impl<'w, P0: SystemParam + 'static> ParamSet<'w, (P0,)>
Sourcepub fn p0(&mut self) -> &mut SystemParamItem<'w, P0>
pub fn p0(&mut self) -> &mut SystemParamItem<'w, P0>
Gets exclusive access to the 0th parameter in this ParamSet.
No other parameters may be accessed while this one is active.
Source§impl<'w, P0: SystemParam + 'static, P1: SystemParam + 'static> ParamSet<'w, (P0, P1)>
impl<'w, P0: SystemParam + 'static, P1: SystemParam + 'static> ParamSet<'w, (P0, P1)>
Sourcepub fn p0(&mut self) -> &mut SystemParamItem<'w, P0>
pub fn p0(&mut self) -> &mut SystemParamItem<'w, P0>
Gets exclusive access to the 0th parameter in this ParamSet.
No other parameters may be accessed while this one is active.
Sourcepub fn p1(&mut self) -> &mut SystemParamItem<'w, P1>
pub fn p1(&mut self) -> &mut SystemParamItem<'w, P1>
Gets exclusive access to the 1st parameter in this ParamSet.
No other parameters may be accessed while this one is active.
Source§impl<'w, P0: SystemParam + 'static, P1: SystemParam + 'static, P2: SystemParam + 'static> ParamSet<'w, (P0, P1, P2)>
impl<'w, P0: SystemParam + 'static, P1: SystemParam + 'static, P2: SystemParam + 'static> ParamSet<'w, (P0, P1, P2)>
Sourcepub fn p0(&mut self) -> &mut SystemParamItem<'w, P0>
pub fn p0(&mut self) -> &mut SystemParamItem<'w, P0>
Gets exclusive access to the 0th parameter in this ParamSet.
No other parameters may be accessed while this one is active.
Sourcepub fn p1(&mut self) -> &mut SystemParamItem<'w, P1>
pub fn p1(&mut self) -> &mut SystemParamItem<'w, P1>
Gets exclusive access to the 1st parameter in this ParamSet.
No other parameters may be accessed while this one is active.
Sourcepub fn p2(&mut self) -> &mut SystemParamItem<'w, P2>
pub fn p2(&mut self) -> &mut SystemParamItem<'w, P2>
Gets exclusive access to the 2nd parameter in this ParamSet.
No other parameters may be accessed while this one is active.
Source§impl<'w, P0: SystemParam + 'static, P1: SystemParam + 'static, P2: SystemParam + 'static, P3: SystemParam + 'static> ParamSet<'w, (P0, P1, P2, P3)>
impl<'w, P0: SystemParam + 'static, P1: SystemParam + 'static, P2: SystemParam + 'static, P3: SystemParam + 'static> ParamSet<'w, (P0, P1, P2, P3)>
Sourcepub fn p0(&mut self) -> &mut SystemParamItem<'w, P0>
pub fn p0(&mut self) -> &mut SystemParamItem<'w, P0>
Gets exclusive access to the 0th parameter in this ParamSet.
No other parameters may be accessed while this one is active.
Sourcepub fn p1(&mut self) -> &mut SystemParamItem<'w, P1>
pub fn p1(&mut self) -> &mut SystemParamItem<'w, P1>
Gets exclusive access to the 1st parameter in this ParamSet.
No other parameters may be accessed while this one is active.
Sourcepub fn p2(&mut self) -> &mut SystemParamItem<'w, P2>
pub fn p2(&mut self) -> &mut SystemParamItem<'w, P2>
Gets exclusive access to the 2nd parameter in this ParamSet.
No other parameters may be accessed while this one is active.
Sourcepub fn p3(&mut self) -> &mut SystemParamItem<'w, P3>
pub fn p3(&mut self) -> &mut SystemParamItem<'w, P3>
Gets exclusive access to the 3rd parameter in this ParamSet.
No other parameters may be accessed while this one is active.
Source§impl<'w, P0: SystemParam + 'static, P1: SystemParam + 'static, P2: SystemParam + 'static, P3: SystemParam + 'static, P4: SystemParam + 'static> ParamSet<'w, (P0, P1, P2, P3, P4)>
impl<'w, P0: SystemParam + 'static, P1: SystemParam + 'static, P2: SystemParam + 'static, P3: SystemParam + 'static, P4: SystemParam + 'static> ParamSet<'w, (P0, P1, P2, P3, P4)>
Sourcepub fn p0(&mut self) -> &mut SystemParamItem<'w, P0>
pub fn p0(&mut self) -> &mut SystemParamItem<'w, P0>
Gets exclusive access to the 0th parameter in this ParamSet.
No other parameters may be accessed while this one is active.
Sourcepub fn p1(&mut self) -> &mut SystemParamItem<'w, P1>
pub fn p1(&mut self) -> &mut SystemParamItem<'w, P1>
Gets exclusive access to the 1st parameter in this ParamSet.
No other parameters may be accessed while this one is active.
Sourcepub fn p2(&mut self) -> &mut SystemParamItem<'w, P2>
pub fn p2(&mut self) -> &mut SystemParamItem<'w, P2>
Gets exclusive access to the 2nd parameter in this ParamSet.
No other parameters may be accessed while this one is active.
Sourcepub fn p3(&mut self) -> &mut SystemParamItem<'w, P3>
pub fn p3(&mut self) -> &mut SystemParamItem<'w, P3>
Gets exclusive access to the 3rd parameter in this ParamSet.
No other parameters may be accessed while this one is active.
Sourcepub fn p4(&mut self) -> &mut SystemParamItem<'w, P4>
pub fn p4(&mut self) -> &mut SystemParamItem<'w, P4>
Gets exclusive access to the 4th parameter in this ParamSet.
No other parameters may be accessed while this one is active.
Source§impl<'w, P0: SystemParam + 'static, P1: SystemParam + 'static, P2: SystemParam + 'static, P3: SystemParam + 'static, P4: SystemParam + 'static, P5: SystemParam + 'static> ParamSet<'w, (P0, P1, P2, P3, P4, P5)>
impl<'w, P0: SystemParam + 'static, P1: SystemParam + 'static, P2: SystemParam + 'static, P3: SystemParam + 'static, P4: SystemParam + 'static, P5: SystemParam + 'static> ParamSet<'w, (P0, P1, P2, P3, P4, P5)>
Sourcepub fn p0(&mut self) -> &mut SystemParamItem<'w, P0>
pub fn p0(&mut self) -> &mut SystemParamItem<'w, P0>
Gets exclusive access to the 0th parameter in this ParamSet.
No other parameters may be accessed while this one is active.
Sourcepub fn p1(&mut self) -> &mut SystemParamItem<'w, P1>
pub fn p1(&mut self) -> &mut SystemParamItem<'w, P1>
Gets exclusive access to the 1st parameter in this ParamSet.
No other parameters may be accessed while this one is active.
Sourcepub fn p2(&mut self) -> &mut SystemParamItem<'w, P2>
pub fn p2(&mut self) -> &mut SystemParamItem<'w, P2>
Gets exclusive access to the 2nd parameter in this ParamSet.
No other parameters may be accessed while this one is active.
Sourcepub fn p3(&mut self) -> &mut SystemParamItem<'w, P3>
pub fn p3(&mut self) -> &mut SystemParamItem<'w, P3>
Gets exclusive access to the 3rd parameter in this ParamSet.
No other parameters may be accessed while this one is active.
Sourcepub fn p4(&mut self) -> &mut SystemParamItem<'w, P4>
pub fn p4(&mut self) -> &mut SystemParamItem<'w, P4>
Gets exclusive access to the 4th parameter in this ParamSet.
No other parameters may be accessed while this one is active.
Sourcepub fn p5(&mut self) -> &mut SystemParamItem<'w, P5>
pub fn p5(&mut self) -> &mut SystemParamItem<'w, P5>
Gets exclusive access to the 5th parameter in this ParamSet.
No other parameters may be accessed while this one is active.
Source§impl<'w, P0: SystemParam + 'static, P1: SystemParam + 'static, P2: SystemParam + 'static, P3: SystemParam + 'static, P4: SystemParam + 'static, P5: SystemParam + 'static, P6: SystemParam + 'static> ParamSet<'w, (P0, P1, P2, P3, P4, P5, P6)>
impl<'w, P0: SystemParam + 'static, P1: SystemParam + 'static, P2: SystemParam + 'static, P3: SystemParam + 'static, P4: SystemParam + 'static, P5: SystemParam + 'static, P6: SystemParam + 'static> ParamSet<'w, (P0, P1, P2, P3, P4, P5, P6)>
Sourcepub fn p0(&mut self) -> &mut SystemParamItem<'w, P0>
pub fn p0(&mut self) -> &mut SystemParamItem<'w, P0>
Gets exclusive access to the 0th parameter in this ParamSet.
No other parameters may be accessed while this one is active.
Sourcepub fn p1(&mut self) -> &mut SystemParamItem<'w, P1>
pub fn p1(&mut self) -> &mut SystemParamItem<'w, P1>
Gets exclusive access to the 1st parameter in this ParamSet.
No other parameters may be accessed while this one is active.
Sourcepub fn p2(&mut self) -> &mut SystemParamItem<'w, P2>
pub fn p2(&mut self) -> &mut SystemParamItem<'w, P2>
Gets exclusive access to the 2nd parameter in this ParamSet.
No other parameters may be accessed while this one is active.
Sourcepub fn p3(&mut self) -> &mut SystemParamItem<'w, P3>
pub fn p3(&mut self) -> &mut SystemParamItem<'w, P3>
Gets exclusive access to the 3rd parameter in this ParamSet.
No other parameters may be accessed while this one is active.
Sourcepub fn p4(&mut self) -> &mut SystemParamItem<'w, P4>
pub fn p4(&mut self) -> &mut SystemParamItem<'w, P4>
Gets exclusive access to the 4th parameter in this ParamSet.
No other parameters may be accessed while this one is active.
Sourcepub fn p5(&mut self) -> &mut SystemParamItem<'w, P5>
pub fn p5(&mut self) -> &mut SystemParamItem<'w, P5>
Gets exclusive access to the 5th parameter in this ParamSet.
No other parameters may be accessed while this one is active.
Sourcepub fn p6(&mut self) -> &mut SystemParamItem<'w, P6>
pub fn p6(&mut self) -> &mut SystemParamItem<'w, P6>
Gets exclusive access to the 6th parameter in this ParamSet.
No other parameters may be accessed while this one is active.
Source§impl<'w, P0: SystemParam + 'static, P1: SystemParam + 'static, P2: SystemParam + 'static, P3: SystemParam + 'static, P4: SystemParam + 'static, P5: SystemParam + 'static, P6: SystemParam + 'static, P7: SystemParam + 'static> ParamSet<'w, (P0, P1, P2, P3, P4, P5, P6, P7)>
impl<'w, P0: SystemParam + 'static, P1: SystemParam + 'static, P2: SystemParam + 'static, P3: SystemParam + 'static, P4: SystemParam + 'static, P5: SystemParam + 'static, P6: SystemParam + 'static, P7: SystemParam + 'static> ParamSet<'w, (P0, P1, P2, P3, P4, P5, P6, P7)>
Sourcepub fn p0(&mut self) -> &mut SystemParamItem<'w, P0>
pub fn p0(&mut self) -> &mut SystemParamItem<'w, P0>
Gets exclusive access to the 0th parameter in this ParamSet.
No other parameters may be accessed while this one is active.
Sourcepub fn p1(&mut self) -> &mut SystemParamItem<'w, P1>
pub fn p1(&mut self) -> &mut SystemParamItem<'w, P1>
Gets exclusive access to the 1st parameter in this ParamSet.
No other parameters may be accessed while this one is active.
Sourcepub fn p2(&mut self) -> &mut SystemParamItem<'w, P2>
pub fn p2(&mut self) -> &mut SystemParamItem<'w, P2>
Gets exclusive access to the 2nd parameter in this ParamSet.
No other parameters may be accessed while this one is active.
Sourcepub fn p3(&mut self) -> &mut SystemParamItem<'w, P3>
pub fn p3(&mut self) -> &mut SystemParamItem<'w, P3>
Gets exclusive access to the 3rd parameter in this ParamSet.
No other parameters may be accessed while this one is active.
Sourcepub fn p4(&mut self) -> &mut SystemParamItem<'w, P4>
pub fn p4(&mut self) -> &mut SystemParamItem<'w, P4>
Gets exclusive access to the 4th parameter in this ParamSet.
No other parameters may be accessed while this one is active.
Sourcepub fn p5(&mut self) -> &mut SystemParamItem<'w, P5>
pub fn p5(&mut self) -> &mut SystemParamItem<'w, P5>
Gets exclusive access to the 5th parameter in this ParamSet.
No other parameters may be accessed while this one is active.
Sourcepub fn p6(&mut self) -> &mut SystemParamItem<'w, P6>
pub fn p6(&mut self) -> &mut SystemParamItem<'w, P6>
Gets exclusive access to the 6th parameter in this ParamSet.
No other parameters may be accessed while this one is active.
Sourcepub fn p7(&mut self) -> &mut SystemParamItem<'w, P7>
pub fn p7(&mut self) -> &mut SystemParamItem<'w, P7>
Gets exclusive access to the 7th parameter in this ParamSet.
No other parameters may be accessed while this one is active.
Trait Implementations§
Source§impl<T: 'static + SystemParam> SystemParam for ParamSet<'_, T>
impl<T: 'static + SystemParam> SystemParam for ParamSet<'_, T>
Source§type State = <T as SystemParam>::State
type State = <T as SystemParam>::State
type Item<'w> = ParamSet<'w, T>
Source§fn init_state(world: &mut World, meta: &mut SystemMeta) -> Self::State
fn init_state(world: &mut World, meta: &mut SystemMeta) -> Self::State
Self, instantiated with new lifetimes. Read moreSource§fn get_param<'world>(state: &'world mut Self::State) -> Self::Item<'world>
fn get_param<'world>(state: &'world mut Self::State) -> Self::Item<'world>
SystemParamFunction. Read morefn get_self<'world>(state: &'world mut Self::State) -> Self
fn init(_state: &mut Self::State)
Auto Trait Implementations§
impl<'w, T> Freeze for ParamSet<'w, T>
impl<'w, T> RefUnwindSafe for ParamSet<'w, T>
impl<'w, T> Send for ParamSet<'w, T>
impl<'w, T> Sync for ParamSet<'w, T>
impl<'w, T> Unpin for ParamSet<'w, T>
impl<'w, T> UnwindSafe for ParamSet<'w, T>
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
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>
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>
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)
&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)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.