Struct shipyard::UniqueViewMut
source · [−]pub struct UniqueViewMut<'a, T: Unique> { /* private fields */ }
Expand description
Exclusive view over a unique component storage.
Implementations
sourceimpl<T: Unique> UniqueViewMut<'_, T>
impl<T: Unique> UniqueViewMut<'_, T>
sourcepub fn is_inserted(&self) -> bool
pub fn is_inserted(&self) -> bool
Returns true
if the component was inserted before the last clear_inserted
call.
sourcepub fn is_modified(&self) -> bool
pub fn is_modified(&self) -> bool
Returns true
if the component was modified since the last clear_modified
call.
sourcepub fn is_inserted_or_modified(&self) -> bool
pub fn is_inserted_or_modified(&self) -> bool
Returns true
if the component was inserted or modified since the last clear_inserted
or clear_modified
call.
sourcepub fn clear_inserted(self)
pub fn clear_inserted(self)
Removes the inserted flag on the component of this storage.
sourcepub fn clear_modified(self)
pub fn clear_modified(self)
Removes the modified flag on the component of this storage.
sourcepub fn clear_inserted_and_modified(self)
pub fn clear_inserted_and_modified(self)
Removes the inserted and modified flags on the component of this storage.
Trait Implementations
sourceimpl<T: Unique> AsMut<T> for UniqueViewMut<'_, T>
impl<T: Unique> AsMut<T> for UniqueViewMut<'_, T>
sourceimpl<T: Unique> AsRef<T> for UniqueViewMut<'_, T>
impl<T: Unique> AsRef<T> for UniqueViewMut<'_, T>
sourceimpl<'a, T: Send + Sync + Unique> BorrowInfo for UniqueViewMut<'a, T>
impl<'a, T: Send + Sync + Unique> BorrowInfo for UniqueViewMut<'a, T>
sourcefn borrow_info(info: &mut Vec<TypeInfo>)
fn borrow_info(info: &mut Vec<TypeInfo>)
This information is used during workload creation to determine which systems can run in parallel. Read more
sourceimpl<T: Debug + Unique> Debug for UniqueViewMut<'_, T>
impl<T: Debug + Unique> Debug for UniqueViewMut<'_, T>
sourceimpl<T: Unique> Deref for UniqueViewMut<'_, T>
impl<T: Unique> Deref for UniqueViewMut<'_, T>
sourceimpl<T: Unique> DerefMut for UniqueViewMut<'_, T>
impl<T: Unique> DerefMut for UniqueViewMut<'_, T>
sourceimpl<T: Send + Sync + Unique> IntoBorrow for UniqueViewMut<'_, T>
impl<T: Send + Sync + Unique> IntoBorrow for UniqueViewMut<'_, T>
type Borrow = UniqueViewMutBorrower<T>
type Borrow = UniqueViewMutBorrower<T>
Helper type almost allowing GAT on stable.
Auto Trait Implementations
impl<'a, T> RefUnwindSafe for UniqueViewMut<'a, T> where
T: RefUnwindSafe,
impl<'a, T> Send for UniqueViewMut<'a, T> where
T: Send,
impl<'a, T> Sync for UniqueViewMut<'a, T> where
T: Sync,
impl<'a, T> Unpin for UniqueViewMut<'a, T>
impl<'a, T> !UnwindSafe for UniqueViewMut<'a, T>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more