Enum RecipeInput
#[non_exhaustive]pub enum RecipeInput {
Crafting {
width: u32,
height: u32,
slots: Vec<Option<ItemStack>>,
},
Single(ItemStack),
Smithing {
template: Option<ItemStack>,
base: Option<ItemStack>,
addition: Option<ItemStack>,
},
}Expand description
Typed input to the engine’s matched recipe lookup. Slot order is significant.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
§impl Clone for RecipeInput
impl Clone for RecipeInput
§fn clone(&self) -> RecipeInput
fn clone(&self) -> RecipeInput
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 more§impl Debug for RecipeInput
impl Debug for RecipeInput
§impl PartialEq for RecipeInput
impl PartialEq for RecipeInput
impl StructuralPartialEq for RecipeInput
Auto Trait Implementations§
impl Freeze for RecipeInput
impl RefUnwindSafe for RecipeInput
impl Send for RecipeInput
impl Sync for RecipeInput
impl Unpin for RecipeInput
impl UnsafeUnpin for RecipeInput
impl UnwindSafe for RecipeInput
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