Enum hecs::QueryOneError
source · pub enum QueryOneError {
NoSuchEntity,
Unsatisfied,
}
Expand description
Errors that arise when querying a single entity
Variants§
NoSuchEntity
The entity was already despawned
Unsatisfied
The entity exists but does not satisfy the query
Trait Implementations§
source§impl Clone for QueryOneError
impl Clone for QueryOneError
source§fn clone(&self) -> QueryOneError
fn clone(&self) -> QueryOneError
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 QueryOneError
impl Debug for QueryOneError
source§impl Display for QueryOneError
impl Display for QueryOneError
source§impl Error for QueryOneError
impl Error for QueryOneError
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<NoSuchEntity> for QueryOneError
impl From<NoSuchEntity> for QueryOneError
source§fn from(NoSuchEntity: NoSuchEntity) -> Self
fn from(NoSuchEntity: NoSuchEntity) -> Self
Converts to this type from the input type.
source§impl Hash for QueryOneError
impl Hash for QueryOneError
source§impl PartialEq for QueryOneError
impl PartialEq for QueryOneError
source§fn eq(&self, other: &QueryOneError) -> bool
fn eq(&self, other: &QueryOneError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for QueryOneError
impl StructuralEq for QueryOneError
impl StructuralPartialEq for QueryOneError
Auto Trait Implementations§
impl RefUnwindSafe for QueryOneError
impl Send for QueryOneError
impl Sync for QueryOneError
impl Unpin for QueryOneError
impl UnwindSafe for QueryOneError
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