Enum bones_lib::ecs::prelude::QuerySingleError
pub enum QuerySingleError {
NoEntities,
MultipleEntities,
}
Expand description
An error that may occur when querying for a single entity. For example, via
Entities::get_single_with
, or more directly with
ComponentStore::get_single_with_bitset
or
ComponentStore::get_single_mut_with_bitset
.
Variants§
Trait Implementations§
§impl Debug for QuerySingleError
impl Debug for QuerySingleError
§impl PartialEq for QuerySingleError
impl PartialEq for QuerySingleError
§fn eq(&self, other: &QuerySingleError) -> bool
fn eq(&self, other: &QuerySingleError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for QuerySingleError
impl StructuralPartialEq for QuerySingleError
Auto Trait Implementations§
impl Freeze for QuerySingleError
impl RefUnwindSafe for QuerySingleError
impl Send for QuerySingleError
impl Sync for QuerySingleError
impl Unpin for QuerySingleError
impl UnwindSafe for QuerySingleError
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 Q
impl<Q, K> Equivalent<K> for Q
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more