pub enum RemoveComponentError {
EntityNotFound,
ComponentNotRegistered,
ComponentNotPresent,
}Expand description
Errors that can occur when removing a single component from 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.
ComponentNotPresent
The entity does not currently have a component of the specified type.
Trait Implementations§
Source§impl Debug for RemoveComponentError
impl Debug for RemoveComponentError
Source§impl PartialEq for RemoveComponentError
impl PartialEq for RemoveComponentError
Source§fn eq(&self, other: &RemoveComponentError) -> bool
fn eq(&self, other: &RemoveComponentError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for RemoveComponentError
impl StructuralPartialEq for RemoveComponentError
Auto Trait Implementations§
impl Freeze for RemoveComponentError
impl RefUnwindSafe for RemoveComponentError
impl Send for RemoveComponentError
impl Sync for RemoveComponentError
impl Unpin for RemoveComponentError
impl UnsafeUnpin for RemoveComponentError
impl UnwindSafe for RemoveComponentError
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.