Enum recs::NotFound [] [src]

pub enum NotFound {
    Entity(EntityId),
    Component(TypeId),
}

Error type for ECS results that require a specific entity or component.

Variants

Entity(EntityId)

A requested entity ID was not present in the system.

Component(TypeId)

A requested component was not present on an entity.

Trait Implementations

impl Eq for NotFound
[src]

impl PartialEq for NotFound
[src]

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

This method tests for self and other values to be equal, and is used by ==. Read more

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

This method tests for !=.

impl Debug for NotFound
[src]

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

Formats the value using the given formatter.