Enum BlockStateError
#[non_exhaustive]pub enum BlockStateError {
Unavailable,
UnknownBlock,
UnknownState,
UnknownProperty(u32),
InvalidValue(u32),
DuplicateProperty(u32),
InvalidCombination,
}Expand description
A refused metadata read or state operation.
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.
Metadata is unavailable in this context.
UnknownBlock
The context does not contain the block key.
UnknownState
The ordinal is outside the block definition.
UnknownProperty(u32)
Constraint index naming a missing property.
InvalidValue(u32)
Constraint index naming an invalid value.
DuplicateProperty(u32)
Constraint index repeating a property.
InvalidCombination
The requested combination is not a registered state.
Trait Implementations§
§impl Clone for BlockStateError
impl Clone for BlockStateError
§fn clone(&self) -> BlockStateError
fn clone(&self) -> BlockStateError
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 BlockStateError
§impl Debug for BlockStateError
impl Debug for BlockStateError
impl Eq for BlockStateError
§impl From<BlockStateError> for LevelWriteError
impl From<BlockStateError> for LevelWriteError
§fn from(error: BlockStateError) -> LevelWriteError
fn from(error: BlockStateError) -> LevelWriteError
Converts to this type from the input type.
§impl From<StateError> for BlockStateError
impl From<StateError> for BlockStateError
§fn from(error: StateError) -> BlockStateError
fn from(error: StateError) -> BlockStateError
Converts to this type from the input type.
§impl NoBackend for BlockStateError
impl NoBackend for BlockStateError
§fn no_backend() -> BlockStateError
fn no_backend() -> BlockStateError
The error for a host without a game.
§impl PartialEq for BlockStateError
impl PartialEq for BlockStateError
impl StructuralPartialEq for BlockStateError
Auto Trait Implementations§
impl Freeze for BlockStateError
impl RefUnwindSafe for BlockStateError
impl Send for BlockStateError
impl Sync for BlockStateError
impl Unpin for BlockStateError
impl UnsafeUnpin for BlockStateError
impl UnwindSafe for BlockStateError
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