Enum SpawnPlacementError
#[non_exhaustive]pub enum SpawnPlacementError {
InvalidId,
InvalidTag,
Duplicate,
}Expand description
Why a spawn placement declaration was refused
(Registrar::declare_spawn_placement).
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.
InvalidId
The entity type’s id is invalid, empty, or in a namespace the declaring mod does not own.
InvalidTag
A tag is not a namespaced tag name (write it without #).
Duplicate
Another declaration already covers the entity type.
Trait Implementations§
§impl Clone for SpawnPlacementError
impl Clone for SpawnPlacementError
§fn clone(&self) -> SpawnPlacementError
fn clone(&self) -> SpawnPlacementError
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 more§impl Debug for SpawnPlacementError
impl Debug for SpawnPlacementError
impl Eq for SpawnPlacementError
§impl PartialEq for SpawnPlacementError
impl PartialEq for SpawnPlacementError
impl StructuralPartialEq for SpawnPlacementError
Auto Trait Implementations§
impl Freeze for SpawnPlacementError
impl RefUnwindSafe for SpawnPlacementError
impl Send for SpawnPlacementError
impl Sync for SpawnPlacementError
impl Unpin for SpawnPlacementError
impl UnsafeUnpin for SpawnPlacementError
impl UnwindSafe for SpawnPlacementError
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