[−][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<S> RawStorage for Flagged<S> where
S: RawStorage,
[src]
S: RawStorage,
type Item = S::Item
unsafe fn get(&self, index: Index) -> &Self::Item
[src]
unsafe fn get_mut(&self, index: Index) -> &mut Self::Item
[src]
unsafe fn insert(&mut self, index: Index, value: Self::Item)
[src]
unsafe fn remove(&mut self, index: Index) -> Self::Item
[src]
impl<S> TrackedStorage for Flagged<S> where
S: RawStorage,
[src]
S: RawStorage,
fn set_track_modified(&mut self, flag: bool)
[src]
fn tracking_modified(&self) -> bool
[src]
fn mark_modified(&self, index: Index)
[src]
fn modified_indexes(&self) -> &ModifiedBitSet
[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> Any for T where
T: Any,
[src]
T: Any,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub 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> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
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.
pub 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>,