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
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 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