[−][src]Struct goggles::tracked::Flagged
Storage that can optionally track the indexes of any changed components.
Any call to the get_mut
, insert
, or remove
methods of RawStorage
will set modification
bits for that index if tracking is turned on.
By default, tracking is not turned on, you must turn it on by calling
set_track_modified(true)
.
Trait Implementations
impl<S: Default> Default for Flagged<S>
[src]
impl<C, S> RawStorage<C> for Flagged<S> where
C: Component,
S: RawStorage<C>,
[src]
C: Component,
S: RawStorage<C>,
unsafe fn get(&self, index: Index) -> &C
[src]
unsafe fn get_mut(&self, index: Index) -> &mut C
[src]
unsafe fn insert(&mut self, index: Index, value: C)
[src]
unsafe fn remove(&mut self, index: Index) -> C
[src]
impl<C, S> TrackedStorage<C> for Flagged<S> where
C: Component,
S: RawStorage<C>,
[src]
C: Component,
S: RawStorage<C>,
fn set_track_modified(&mut self, flag: bool)
[src]
fn tracking_modified(&self) -> bool
[src]
fn modified(&self) -> &AtomicBitSet
[src]
fn clear_modified(&mut self)
[src]
Auto Trait Implementations
impl<S> RefUnwindSafe for Flagged<S> where
S: RefUnwindSafe,
S: RefUnwindSafe,
impl<S> Send for Flagged<S> where
S: Send,
S: Send,
impl<S> Sync for Flagged<S> where
S: Sync,
S: Sync,
impl<S> Unpin for Flagged<S> where
S: Unpin,
S: Unpin,
impl<S> UnwindSafe for Flagged<S> where
S: UnwindSafe,
S: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,