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