#[non_exhaustive]pub enum EntityScratchError {
WrongWorld,
StaleEntity {
entity: EntityId,
},
EntityNotLive {
entity: EntityId,
},
}Expand description
Failure while accessing DenseEntityScratch against a bound world.
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.
WrongWorld
The supplied world is not the world that created the scratch storage.
StaleEntity
The entity generation is no longer live in the bound world.
EntityNotLive
The entity belongs to the bound world but is not live yet.
Trait Implementations§
Source§impl Clone for EntityScratchError
impl Clone for EntityScratchError
Source§fn clone(&self) -> EntityScratchError
fn clone(&self) -> EntityScratchError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for EntityScratchError
Source§impl Debug for EntityScratchError
impl Debug for EntityScratchError
Source§impl Display for EntityScratchError
impl Display for EntityScratchError
impl Eq for EntityScratchError
Source§impl Error for EntityScratchError
Available on crate feature std only.
impl Error for EntityScratchError
Available on crate feature
std only.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 PartialEq for EntityScratchError
impl PartialEq for EntityScratchError
impl StructuralPartialEq for EntityScratchError
Auto Trait Implementations§
impl Freeze for EntityScratchError
impl RefUnwindSafe for EntityScratchError
impl Send for EntityScratchError
impl Sync for EntityScratchError
impl Unpin for EntityScratchError
impl UnsafeUnpin for EntityScratchError
impl UnwindSafe for EntityScratchError
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