pub enum InvalidNonAirBlockStateId {
Air,
OutOfRange(u32),
}Expand description
Error returned when constructing a block-state reference that cannot be air.
Variants§
Air
Registry ID zero denotes air and is reserved as the absent marker.
OutOfRange(u32)
The ID cannot be represented by a non-negative VarInt.
Trait Implementations§
Source§impl Clone for InvalidNonAirBlockStateId
impl Clone for InvalidNonAirBlockStateId
Source§fn clone(&self) -> InvalidNonAirBlockStateId
fn clone(&self) -> InvalidNonAirBlockStateId
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 InvalidNonAirBlockStateId
Source§impl Debug for InvalidNonAirBlockStateId
impl Debug for InvalidNonAirBlockStateId
Source§impl Display for InvalidNonAirBlockStateId
impl Display for InvalidNonAirBlockStateId
impl Eq for InvalidNonAirBlockStateId
Source§impl Error for InvalidNonAirBlockStateId
impl Error for InvalidNonAirBlockStateId
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 Hash for InvalidNonAirBlockStateId
impl Hash for InvalidNonAirBlockStateId
impl StructuralPartialEq for InvalidNonAirBlockStateId
Auto Trait Implementations§
impl Freeze for InvalidNonAirBlockStateId
impl RefUnwindSafe for InvalidNonAirBlockStateId
impl Send for InvalidNonAirBlockStateId
impl Sync for InvalidNonAirBlockStateId
impl Unpin for InvalidNonAirBlockStateId
impl UnsafeUnpin for InvalidNonAirBlockStateId
impl UnwindSafe for InvalidNonAirBlockStateId
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