Trait entity::EntType[][src]

pub trait EntType {
    fn type_str() -> &'static str;
}

Represents the interface for an Ent to report its type. This should align with [Ent::r#type()] method and is used when we must know the type without having an instance of an ent.

Required methods

fn type_str() -> &'static str[src]

Returns a static str that represents the unique type for an ent

Loading content...

Implementors

impl EntType for UntypedEnt[src]

fn type_str() -> &'static str[src]

Represents a unique type associated with the entity, used for lookups, indexing by type, and conversions

Examples

use entity::{UntypedEnt, EntType};

assert_eq!(UntypedEnt::type_str(), "entity::ent::UntypedEnt");
Loading content...