Enum oxygengine_core::ecs::pipeline::ComponentError
source · pub enum ComponentError {
NoSuchEntity,
MissingComponent(MissingComponent),
}
Expand description
Errors that arise when accessing components
Variants§
NoSuchEntity
The entity was already despawned
MissingComponent(MissingComponent)
The entity did not have a requested component
Trait Implementations§
source§impl Clone for ComponentError
impl Clone for ComponentError
source§fn clone(&self) -> ComponentError
fn clone(&self) -> ComponentError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ComponentError
impl Debug for ComponentError
source§impl Display for ComponentError
impl Display for ComponentError
source§impl Error for ComponentError
impl Error for ComponentError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<MissingComponent> for ComponentError
impl From<MissingComponent> for ComponentError
source§fn from(x: MissingComponent) -> ComponentError
fn from(x: MissingComponent) -> ComponentError
Converts to this type from the input type.
source§impl From<NoSuchEntity> for ComponentError
impl From<NoSuchEntity> for ComponentError
source§fn from(_: NoSuchEntity) -> ComponentError
fn from(_: NoSuchEntity) -> ComponentError
Converts to this type from the input type.
source§impl Hash for ComponentError
impl Hash for ComponentError
source§impl PartialEq<ComponentError> for ComponentError
impl PartialEq<ComponentError> for ComponentError
source§fn eq(&self, other: &ComponentError) -> bool
fn eq(&self, other: &ComponentError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ComponentError
impl StructuralEq for ComponentError
impl StructuralPartialEq for ComponentError
Auto Trait Implementations§
impl RefUnwindSafe for ComponentError
impl Send for ComponentError
impl Sync for ComponentError
impl Unpin for ComponentError
impl UnwindSafe for ComponentError
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 Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§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 Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more