Enum GameRuleError
#[non_exhaustive]pub enum GameRuleError {
InvalidId,
ForeignNamespace,
Duplicate,
}Expand description
Why a game rule category declaration was refused.
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 identifier is invalid.
ForeignNamespace
The namespace does not belong to the declaring mod.
Duplicate
The category is already declared.
Trait Implementations§
§impl Clone for GameRuleError
impl Clone for GameRuleError
§fn clone(&self) -> GameRuleError
fn clone(&self) -> GameRuleError
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 GameRuleError
impl Debug for GameRuleError
impl Eq for GameRuleError
§impl PartialEq for GameRuleError
impl PartialEq for GameRuleError
impl StructuralPartialEq for GameRuleError
Auto Trait Implementations§
impl Freeze for GameRuleError
impl RefUnwindSafe for GameRuleError
impl Send for GameRuleError
impl Sync for GameRuleError
impl Unpin for GameRuleError
impl UnsafeUnpin for GameRuleError
impl UnwindSafe for GameRuleError
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