pub enum ItemID {
ItemPrototype(LuaItemPrototype),
ItemStack(LuaItemStack),
Item(LuaItem),
Name(&'static str),
}Expand description
An item prototype may be specified in one of four ways.
Variants§
Trait Implementations§
impl Copy for ItemID
Source§impl From<LuaItemPrototype> for ItemID
impl From<LuaItemPrototype> for ItemID
Source§fn from(value: LuaItemPrototype) -> Self
fn from(value: LuaItemPrototype) -> Self
Converts to this type from the input type.
Source§impl From<LuaItemStack> for ItemID
impl From<LuaItemStack> for ItemID
Source§fn from(value: LuaItemStack) -> Self
fn from(value: LuaItemStack) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for ItemID
Auto Trait Implementations§
impl Freeze for ItemID
impl RefUnwindSafe for ItemID
impl Send for ItemID
impl Sync for ItemID
impl Unpin for ItemID
impl UnsafeUnpin for ItemID
impl UnwindSafe for ItemID
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