Struct scoundrel::UniqueViewMut
source · [−]pub struct UniqueViewMut<'a, T> { /* private fields */ }
Expand description
Exclusive view over a unique component storage.
Implementations
sourceimpl<'_, T> UniqueViewMut<'_, T>
impl<'_, T> UniqueViewMut<'_, T>
sourcepub fn is_modified(unique: &UniqueViewMut<'_, T>) -> bool
pub fn is_modified(unique: &UniqueViewMut<'_, T>) -> bool
Returns true
is the component was modified since the last clear_modified
call.
sourcepub fn clear_modified(unique: &mut UniqueViewMut<'_, T>)
pub fn clear_modified(unique: &mut UniqueViewMut<'_, T>)
Removes the modified flag on this component.
Trait Implementations
sourceimpl<'_, T> AsMut<T> for UniqueViewMut<'_, T>
impl<'_, T> AsMut<T> for UniqueViewMut<'_, T>
sourceimpl<'_, T> AsRef<T> for UniqueViewMut<'_, T>
impl<'_, T> AsRef<T> for UniqueViewMut<'_, T>
sourceimpl<'a, T> BorrowInfo for UniqueViewMut<'a, T> where
T: 'static + Send + Sync,
impl<'a, T> BorrowInfo for UniqueViewMut<'a, T> where
T: 'static + Send + Sync,
sourceimpl<'_, T> Deref for UniqueViewMut<'_, T>
impl<'_, T> Deref for UniqueViewMut<'_, T>
sourceimpl<'_, T> DerefMut for UniqueViewMut<'_, T>
impl<'_, T> DerefMut for UniqueViewMut<'_, T>
sourcefn deref_mut(&mut self) -> &mut <UniqueViewMut<'_, T> as Deref>::Target
fn deref_mut(&mut self) -> &mut <UniqueViewMut<'_, T> as Deref>::Target
Mutably dereferences the value.
sourceimpl<'_, T> IntoBorrow for UniqueViewMut<'_, T> where
T: 'static + Send + Sync,
impl<'_, T> IntoBorrow for UniqueViewMut<'_, T> where
T: 'static + Send + Sync,
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
impl<T> Pointable for T
impl<T> Pointable for T
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct self
from the equivalent element of its
superset. Read more
fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if self
is actually part of its subset T
(and can be converted to it).
fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as self.to_subset
but without any property checks. Always succeeds.
fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts self
to the equivalent element of its superset.