Struct specs::Entity [−][src]
pub struct Entity(_, _);
Entity type, as seen by the user.
Methods
impl Entity[src]
impl Entitypub fn id(&self) -> Index[src]
pub fn id(&self) -> IndexReturns the index of the Entity.
pub fn gen(&self) -> Generation[src]
pub fn gen(&self) -> GenerationReturns the Generation of the Entity.
Trait Implementations
impl Clone for Entity[src]
impl Clone for Entityfn clone(&self) -> Entity[src]
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 Copy for Entity[src]
impl Copy for Entityimpl Debug for Entity[src]
impl Debug for Entityfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Hash for Entity[src]
impl Hash for Entityfn hash<__H: Hasher>(&self, state: &mut __H)[src]
fn hash<__H: Hasher>(&self, state: &mut __H)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 Eq for Entity[src]
impl Eq for Entityimpl Ord for Entity[src]
impl Ord for Entityfn cmp(&self, other: &Entity) -> Ordering[src]
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 PartialEq for Entity[src]
impl PartialEq for Entityfn eq(&self, other: &Entity) -> bool[src]
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[src]
fn ne(&self, other: &Entity) -> boolThis method tests for !=.
impl PartialOrd for Entity[src]
impl PartialOrd for Entityfn partial_cmp(&self, other: &Entity) -> Option<Ordering>[src]
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[src]
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[src]
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[src]
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[src]
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