Enum EntityAttributeError
#[non_exhaustive]pub enum EntityAttributeError {
InvalidId,
DuplicateAttribute,
NotFinite,
Duplicate,
}Expand description
Why an entity type’s attribute declaration or addition was refused
(Registrar::declare_entity_attributes,
Registrar::modify_entity_attributes).
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 or empty, or, for a declared set, in a namespace the declaring mod does not own.
DuplicateAttribute
The set names the same attribute twice.
NotFinite
A base value is not finite.
Duplicate
Another declaration already covers the entity type.
Trait Implementations§
§impl Clone for EntityAttributeError
impl Clone for EntityAttributeError
§fn clone(&self) -> EntityAttributeError
fn clone(&self) -> EntityAttributeError
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 EntityAttributeError
impl Debug for EntityAttributeError
impl Eq for EntityAttributeError
§impl PartialEq for EntityAttributeError
impl PartialEq for EntityAttributeError
impl StructuralPartialEq for EntityAttributeError
Auto Trait Implementations§
impl Freeze for EntityAttributeError
impl RefUnwindSafe for EntityAttributeError
impl Send for EntityAttributeError
impl Sync for EntityAttributeError
impl Unpin for EntityAttributeError
impl UnsafeUnpin for EntityAttributeError
impl UnwindSafe for EntityAttributeError
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