pub enum Recipe {
Shaped(OwnedShapedRecipe),
Shapeless(OwnedShapelessRecipe),
}Expand description
A crafting recipe of either shape.
Used by event types and the registry’s removal API to surface a recipe regardless of its underlying shape kind. Plugin handlers match on the variant when they need shape-specific access.
Variants§
Shaped(OwnedShapedRecipe)
A grid-pattern shaped recipe.
Shapeless(OwnedShapelessRecipe)
An unordered shapeless recipe.
Implementations§
Trait Implementations§
impl Eq for Recipe
impl StructuralPartialEq for Recipe
Auto Trait Implementations§
impl Freeze for Recipe
impl RefUnwindSafe for Recipe
impl Send for Recipe
impl Sync for Recipe
impl Unpin for Recipe
impl UnsafeUnpin for Recipe
impl UnwindSafe for Recipe
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.