Struct specs::storage::FlaggedAccessMut
source · pub struct FlaggedAccessMut<'a, A, C> { /* private fields */ }
Expand description
Wrapper type only emits modificaition events when the component is accessed
via mutably dereferencing. Also see DerefFlaggedStorage
documentation.
Trait Implementations§
source§impl<'a, A, C> Deref for FlaggedAccessMut<'a, A, C>where
A: Deref<Target = C>,
impl<'a, A, C> Deref for FlaggedAccessMut<'a, A, C>where A: Deref<Target = C>,
Auto Trait Implementations§
impl<'a, A, C> !RefUnwindSafe for FlaggedAccessMut<'a, A, C>
impl<'a, A, C> Send for FlaggedAccessMut<'a, A, C>where A: Send, C: Send,
impl<'a, A, C> Sync for FlaggedAccessMut<'a, A, C>where A: Sync, C: Sync,
impl<'a, A, C> Unpin for FlaggedAccessMut<'a, A, C>where A: Unpin, C: Unpin,
impl<'a, A, C> !UnwindSafe for FlaggedAccessMut<'a, A, C>
Blanket Implementations§
source§impl<T> AccessMut for Twhere
T: DerefMut + ?Sized,
impl<T> AccessMut for Twhere T: DerefMut + ?Sized,
source§fn access_mut(&mut self) -> &mut <T as Deref>::Target
fn access_mut(&mut self) -> &mut <T as Deref>::Target
This may generate a mutation event for certain flagged storages.
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