pub struct SystemParamAccessor<'a> { /* private fields */ }Expand description
Stores and provides access to a collection of SystemParams.
Implementations§
Source§impl<'a> SystemParamAccessor<'a>
impl<'a> SystemParamAccessor<'a>
pub fn new() -> Self
pub fn add_param<T: 'a + SystemParam>(self, param: T) -> SystemParamAccessor<'a>
pub fn get_param<T: 'a + SystemParam>(&self) -> Option<Arc<RwLock<T>>>
Trait Implementations§
Source§impl<'a> Default for SystemParamAccessor<'a>
impl<'a> Default for SystemParamAccessor<'a>
Source§fn default() -> SystemParamAccessor<'a>
fn default() -> SystemParamAccessor<'a>
Returns the “default value” for a type. Read more
impl Send for SystemParamAccessor<'_>
impl Sync for SystemParamAccessor<'_>
Auto Trait Implementations§
impl<'a> Freeze for SystemParamAccessor<'a>
impl<'a> RefUnwindSafe for SystemParamAccessor<'a>
impl<'a> Unpin for SystemParamAccessor<'a>
impl<'a> UnsafeUnpin for SystemParamAccessor<'a>
impl<'a> UnwindSafe for SystemParamAccessor<'a>
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more