pub enum WorldError {
Archetype(ArchetypeError),
ReachedEntityIdCapacity,
ReachedArchetypeIdCapacity,
EntityDoesNotExists {
entity: Entity,
},
ArchetypeDoesNotExists {
id: u32,
},
DuplicateMutableArchetypeAccess {
id: u32,
},
EmptyColumnSet,
}
Variants§
Archetype(ArchetypeError)
ReachedEntityIdCapacity
ReachedArchetypeIdCapacity
EntityDoesNotExists
ArchetypeDoesNotExists
DuplicateMutableArchetypeAccess
EmptyColumnSet
Implementations§
Source§impl WorldError
impl WorldError
pub fn allow<T>( input: Result<T, Self>, items: impl IntoIterator<Item = Self>, ok: T, ) -> Result<T, Self>
Trait Implementations§
Source§impl Debug for WorldError
impl Debug for WorldError
Source§impl Display for WorldError
impl Display for WorldError
Source§impl Error for WorldError
impl Error for WorldError
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<ArchetypeError> for WorldError
impl From<ArchetypeError> for WorldError
Source§fn from(value: ArchetypeError) -> Self
fn from(value: ArchetypeError) -> Self
Converts to this type from the input type.
Source§impl From<WorldError> for PrefabError
impl From<WorldError> for PrefabError
Source§fn from(value: WorldError) -> Self
fn from(value: WorldError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for WorldError
impl PartialEq for WorldError
impl Eq for WorldError
impl StructuralPartialEq for WorldError
Auto Trait Implementations§
impl Freeze for WorldError
impl RefUnwindSafe for WorldError
impl Send for WorldError
impl Sync for WorldError
impl Unpin for WorldError
impl UnwindSafe for WorldError
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.