pub enum ItemStackIdentification {
Name(&'static str),
ItemStackDefinition(ItemStackDefinition),
ItemStack(LuaItemStack),
}Expand description
An item may be specified in one of three ways.
Variants§
Trait Implementations§
Source§impl Clone for ItemStackIdentification
impl Clone for ItemStackIdentification
Source§fn clone(&self) -> ItemStackIdentification
fn clone(&self) -> ItemStackIdentification
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 ItemStackIdentification
Source§impl Debug for ItemStackIdentification
impl Debug for ItemStackIdentification
Source§impl Default for ItemStackIdentification
impl Default for ItemStackIdentification
Source§impl From<&'static str> for ItemStackIdentification
impl From<&'static str> for ItemStackIdentification
Source§impl From<ItemStackDefinition> for ItemStackIdentification
impl From<ItemStackDefinition> for ItemStackIdentification
Source§fn from(value: ItemStackDefinition) -> Self
fn from(value: ItemStackDefinition) -> Self
Converts to this type from the input type.
Source§impl From<ItemStackIdentification> for LuaAny
impl From<ItemStackIdentification> for LuaAny
Source§fn from(_: ItemStackIdentification) -> Self
fn from(_: ItemStackIdentification) -> Self
Converts to this type from the input type.
Source§impl From<LuaItemStack> for ItemStackIdentification
impl From<LuaItemStack> for ItemStackIdentification
Source§fn from(value: LuaItemStack) -> Self
fn from(value: LuaItemStack) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ItemStackIdentification
impl PartialEq for ItemStackIdentification
impl StructuralPartialEq for ItemStackIdentification
Auto Trait Implementations§
impl Freeze for ItemStackIdentification
impl RefUnwindSafe for ItemStackIdentification
impl Send for ItemStackIdentification
impl Sync for ItemStackIdentification
impl Unpin for ItemStackIdentification
impl UnsafeUnpin for ItemStackIdentification
impl UnwindSafe for ItemStackIdentification
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