pub enum InvalidItemStack {
Count(u32),
ItemId(u32),
}Expand description
Error returned when constructing an invalid non-empty item stack.
Variants§
Count(u32)
The item count is zero or exceeds a positive VarInt.
ItemId(u32)
The item registry ID exceeds a non-negative VarInt.
Trait Implementations§
Source§impl Clone for InvalidItemStack
impl Clone for InvalidItemStack
Source§fn clone(&self) -> InvalidItemStack
fn clone(&self) -> InvalidItemStack
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 InvalidItemStack
Source§impl Debug for InvalidItemStack
impl Debug for InvalidItemStack
Source§impl Display for InvalidItemStack
impl Display for InvalidItemStack
impl Eq for InvalidItemStack
Source§impl Error for InvalidItemStack
impl Error for InvalidItemStack
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 PartialEq for InvalidItemStack
impl PartialEq for InvalidItemStack
impl StructuralPartialEq for InvalidItemStack
Auto Trait Implementations§
impl Freeze for InvalidItemStack
impl RefUnwindSafe for InvalidItemStack
impl Send for InvalidItemStack
impl Sync for InvalidItemStack
impl Unpin for InvalidItemStack
impl UnsafeUnpin for InvalidItemStack
impl UnwindSafe for InvalidItemStack
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