pub struct Entry<T> { /* private fields */ }Expand description
A component value along with its entity’s id and change tracking information.
Implementations
sourceimpl<T> Entry<T>
impl<T> Entry<T>
pub fn new(id: usize, value: T) -> Self
pub fn id(&self) -> usize
pub fn value(&self) -> &T
pub fn set_value(&mut self, t: T)
pub fn replace_value(&mut self, t: T) -> T
pub fn into_inner(self) -> T
pub fn split(self) -> (usize, T)
pub fn has_changed_since(&self, iteration: u64) -> bool
pub fn was_added_since(&self, iteration: u64) -> bool
pub fn was_modified_since(&self, iteration: u64) -> bool
pub fn last_changed(&self) -> u64
Trait Implementations
sourceimpl<T: PartialEq> PartialEq<Entry<T>> for Entry<T>
impl<T: PartialEq> PartialEq<Entry<T>> for Entry<T>
impl<T> StructuralPartialEq for Entry<T>
Auto Trait Implementations
impl<T> RefUnwindSafe for Entry<T>where
T: RefUnwindSafe,
impl<T> Send for Entry<T>where
T: Send,
impl<T> Sync for Entry<T>where
T: Sync,
impl<T> Unpin for Entry<T>where
T: Unpin,
impl<T> UnwindSafe for Entry<T>where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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