Struct amethyst::ecs::prelude::Entity [−]
pub struct Entity(_, _);
Entity type, as seen by the user.
Methods
impl Entity
impl Entitypub fn id(&self) -> u32
pub fn id(&self) -> u32Returns the index of the Entity.
pub fn gen(&self) -> Generation
pub fn gen(&self) -> GenerationReturns the Generation of the Entity.
Trait Implementations
impl PartialOrd<Entity> for Entity
impl PartialOrd<Entity> for Entityfn partial_cmp(&self, other: &Entity) -> Option<Ordering>
fn partial_cmp(&self, other: &Entity) -> Option<Ordering>This method returns an ordering between self and other values if one exists. Read more
fn lt(&self, other: &Entity) -> bool
fn lt(&self, other: &Entity) -> boolThis method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, other: &Entity) -> bool
fn le(&self, other: &Entity) -> boolThis method tests less than or equal to (for self and other) and is used by the <= operator. Read more
fn gt(&self, other: &Entity) -> bool
fn gt(&self, other: &Entity) -> boolThis method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, other: &Entity) -> bool
fn ge(&self, other: &Entity) -> boolThis method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl PartialEq<Entity> for Entity
impl PartialEq<Entity> for Entityfn eq(&self, other: &Entity) -> bool
fn eq(&self, other: &Entity) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Entity) -> bool
fn ne(&self, other: &Entity) -> boolThis method tests for !=.
impl Clone for Entity
impl Clone for Entityfn clone(&self) -> Entity
fn clone(&self) -> EntityReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl Ord for Entity
impl Ord for Entityfn cmp(&self, other: &Entity) -> Ordering
fn cmp(&self, other: &Entity) -> OrderingThis method returns an Ordering between self and other. Read more
fn max(self, other: Self) -> Self1.21.0[src]
fn max(self, other: Self) -> SelfCompares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self1.21.0[src]
fn min(self, other: Self) -> SelfCompares and returns the minimum of two values. Read more
impl Hash for Entity
impl Hash for Entityfn hash<__H>(&self, state: &mut __H) where
__H: Hasher,
fn hash<__H>(&self, state: &mut __H) where
__H: Hasher, Feeds this value into the given [Hasher]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, Feeds a slice of this type into the given [Hasher]. Read more
impl Copy for Entity
impl Copy for Entityimpl Eq for Entity
impl Eq for Entityimpl Debug for Entity
impl Debug for Entity