Struct sscs::Entity [] [src]

pub struct Entity {
    // some fields omitted
}

The entity id struct.

Methods

impl Entity

fn id(&self) -> usize

Use this to index World::component_data fields

Trait Implementations

Derived Implementations

impl Debug for Entity

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl Hash for Entity

fn hash<__H: Hasher>(&self, __arg_0: &mut __H)

fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher

impl Default for Entity

fn default() -> Entity

impl Decodable for Entity

fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<Entity, __D::Error>

impl Encodable for Entity

fn encode<__S: Encoder>(&self, __arg_0: &mut __S) -> Result<(), __S::Error>

impl PartialOrd for Entity

fn partial_cmp(&self, __arg_0: &Entity) -> Option<Ordering>

fn lt(&self, __arg_0: &Entity) -> bool

fn le(&self, __arg_0: &Entity) -> bool

fn gt(&self, __arg_0: &Entity) -> bool

fn ge(&self, __arg_0: &Entity) -> bool

impl Ord for Entity

fn cmp(&self, __arg_0: &Entity) -> Ordering

impl Eq for Entity

impl PartialEq for Entity

fn eq(&self, __arg_0: &Entity) -> bool

fn ne(&self, __arg_0: &Entity) -> bool

impl Copy for Entity

impl Clone for Entity

fn clone(&self) -> Entity

fn clone_from(&mut self, source: &Self)