pub enum AddComponentError {
EntityNotFound,
ComponentNotRegistered,
ComponentAlreadyExists,
}Expand description
Errors that can occur when adding a component to an entity.
Variants§
EntityNotFound
The specified entity does not exist or is not alive.
ComponentNotRegistered
The specified component type is not registered in the ECS.
ComponentAlreadyExists
The entity already has a component of the specified type.
Trait Implementations§
Source§impl Debug for AddComponentError
impl Debug for AddComponentError
Source§impl PartialEq for AddComponentError
impl PartialEq for AddComponentError
Source§fn eq(&self, other: &AddComponentError) -> bool
fn eq(&self, other: &AddComponentError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for AddComponentError
impl StructuralPartialEq for AddComponentError
Auto Trait Implementations§
impl Freeze for AddComponentError
impl RefUnwindSafe for AddComponentError
impl Send for AddComponentError
impl Sync for AddComponentError
impl Unpin for AddComponentError
impl UnsafeUnpin for AddComponentError
impl UnwindSafe for AddComponentError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.