#[non_exhaustive]pub enum ArchetypeAccessError {
NoSuchArchetype {
id: u32,
},
Empty {
id: u32,
},
NotVisible {
id: u32,
scope: Entity,
},
}Expand description
Why a lookup by archetype id was turned down.
An archetype id is the row it was registered at, so a stale id keeps naming a different archetype instead of naming nothing. These variants are what a caller checks against.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
NoSuchArchetype
No archetype was ever registered under this id.
Empty
The archetype exists, but it holds no row to look at.
NotVisible
The archetype holds rows this scope cannot reach.
Trait Implementations§
Source§impl Clone for ArchetypeAccessError
impl Clone for ArchetypeAccessError
impl Copy for ArchetypeAccessError
Source§impl Debug for ArchetypeAccessError
impl Debug for ArchetypeAccessError
Source§impl Display for ArchetypeAccessError
impl Display for ArchetypeAccessError
impl Eq for ArchetypeAccessError
Source§impl Error for ArchetypeAccessError
impl Error for ArchetypeAccessError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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<ArchetypeAccessError> for EntityAccessError
impl From<ArchetypeAccessError> for EntityAccessError
Source§fn from(source: ArchetypeAccessError) -> Self
fn from(source: ArchetypeAccessError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ArchetypeAccessError
impl PartialEq for ArchetypeAccessError
impl StructuralPartialEq for ArchetypeAccessError
Auto Trait Implementations§
impl Forget for ArchetypeAccessError
impl Freeze for ArchetypeAccessError
impl RefUnwindSafe for ArchetypeAccessError
impl Send for ArchetypeAccessError
impl Sync for ArchetypeAccessError
impl Unpin for ArchetypeAccessError
impl UnsafeUnpin for ArchetypeAccessError
impl UnwindSafe for ArchetypeAccessError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> Component for Twhere
T: 'static,
§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
Compare self to
key and return true if they are equal.