pub struct EntityRow(/* private fields */);Expand description
This represents the row or “index” of an Entity within the Entities table.
This is a lighter weight version of Entity.
This is a unique identifier for an entity in the world.
This differs from Entity in that Entity is unique for all entities total (unless the Entity::generation wraps),
but this is only unique for entities that are active.
This can be used over Entity to improve performance in some cases,
but improper use can cause this to identify a different entity than intended.
Use with caution.
Implementations§
Trait Implementations§
Source§impl Ord for EntityRow
impl Ord for EntityRow
Source§impl PartialOrd for EntityRow
impl PartialOrd for EntityRow
Source§impl SparseSetIndex for EntityRow
impl SparseSetIndex for EntityRow
Source§fn sparse_set_index(&self) -> usize
fn sparse_set_index(&self) -> usize
Gets the sparse set index corresponding to this instance.
Source§fn get_sparse_set_index(value: usize) -> Self
fn get_sparse_set_index(value: usize) -> Self
Creates a new instance of this type with the specified index.
impl Copy for EntityRow
impl Eq for EntityRow
impl StructuralPartialEq for EntityRow
Auto Trait Implementations§
impl Freeze for EntityRow
impl RefUnwindSafe for EntityRow
impl Send for EntityRow
impl Sync for EntityRow
impl Unpin for EntityRow
impl UnwindSafe for EntityRow
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
Source§fn into_result(self) -> Result<T, RunSystemError>
fn into_result(self) -> Result<T, RunSystemError>
Converts this type into the system output type.