pub enum RecipeKind {
Shaped {
pattern: Vec<String>,
key: Vec<(char, Vec<String>)>,
},
Shapeless {
ingredients: Vec<Vec<String>>,
},
Cooking {
method: Cooking,
ingredient: Vec<String>,
experience: f32,
cook_time: u32,
},
Stonecutting {
ingredient: Vec<String>,
},
Smithing {
template: Vec<String>,
base: Vec<String>,
addition: Vec<String>,
},
}Expand description
What a recipe is made of besides its result.
Variants§
Shaped
A crafting grid: rows of key characters (space = empty).
Shapeless
Crafting, in any arrangement.
Cooking
Stonecutting
Smithing
A smithing table: base upgraded with addition, template used up.
Trait Implementations§
Source§impl Clone for RecipeKind
impl Clone for RecipeKind
Source§fn clone(&self) -> RecipeKind
fn clone(&self) -> RecipeKind
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 moreSource§impl Debug for RecipeKind
impl Debug for RecipeKind
Source§impl PartialEq for RecipeKind
impl PartialEq for RecipeKind
impl StructuralPartialEq for RecipeKind
Auto Trait Implementations§
impl Freeze for RecipeKind
impl RefUnwindSafe for RecipeKind
impl Send for RecipeKind
impl Sync for RecipeKind
impl Unpin for RecipeKind
impl UnsafeUnpin for RecipeKind
impl UnwindSafe for RecipeKind
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