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.