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
sourceimpl Clone for ComponentError
impl Clone for ComponentError
sourcefn clone(&self) -> ComponentError
fn clone(&self) -> ComponentError
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for ComponentError
impl Debug for ComponentError
sourceimpl Display for ComponentError
impl Display for ComponentError
sourceimpl Error for ComponentError
impl Error for ComponentError
1.30.0 · sourcefn 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 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
sourceimpl From<MissingComponent> for ComponentError
impl From<MissingComponent> for ComponentError
sourcefn from(x: MissingComponent) -> ComponentError
fn from(x: MissingComponent) -> ComponentError
Converts to this type from the input type.
sourceimpl From<NoSuchEntity> for ComponentError
impl From<NoSuchEntity> for ComponentError
sourcefn from(NoSuchEntity) -> ComponentError
fn from(NoSuchEntity) -> ComponentError
Converts to this type from the input type.
sourceimpl Hash for ComponentError
impl Hash for ComponentError
sourceimpl PartialEq<ComponentError> for ComponentError
impl PartialEq<ComponentError> for ComponentError
sourcefn eq(&self, other: &ComponentError) -> bool
fn eq(&self, other: &ComponentError) -> bool
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<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,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.