Struct amethyst::ecs::world::Generation [−]
pub struct Generation(_);
Index generation. When a new entity is placed at an old index,
it bumps the Generation by 1. This allows to avoid using components
from the entities that were deleted.
Methods
impl Generation
impl Generationpub fn id(&self) -> i32
pub fn id(&self) -> i32Returns the id of the generation.
pub fn is_alive(&self) -> bool
pub fn is_alive(&self) -> boolReturns true if entities of this Generation are alive.
Trait Implementations
impl PartialOrd<Generation> for Generation
impl PartialOrd<Generation> for Generationfn partial_cmp(&self, other: &Generation) -> Option<Ordering>
fn partial_cmp(&self, other: &Generation) -> Option<Ordering>This method returns an ordering between self and other values if one exists. Read more
fn lt(&self, other: &Generation) -> bool
fn lt(&self, other: &Generation) -> boolThis method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, other: &Generation) -> bool
fn le(&self, other: &Generation) -> boolThis method tests less than or equal to (for self and other) and is used by the <= operator. Read more
fn gt(&self, other: &Generation) -> bool
fn gt(&self, other: &Generation) -> boolThis method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, other: &Generation) -> bool
fn ge(&self, other: &Generation) -> boolThis method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl PartialEq<Generation> for Generation
impl PartialEq<Generation> for Generationfn eq(&self, other: &Generation) -> bool
fn eq(&self, other: &Generation) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Generation) -> bool
fn ne(&self, other: &Generation) -> boolThis method tests for !=.
impl Clone for Generation
impl Clone for Generationfn clone(&self) -> Generation
fn clone(&self) -> GenerationReturns 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 Generation
impl Ord for Generationfn cmp(&self, other: &Generation) -> Ordering
fn cmp(&self, other: &Generation) -> 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 Generation
impl Hash for Generationfn 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 Generation
impl Copy for Generationimpl Eq for Generation
impl Eq for Generationimpl Debug for Generation
impl Debug for GenerationAuto Trait Implementations
impl Send for Generation
impl Send for Generationimpl Sync for Generation
impl Sync for Generation