pub struct RecipeResult {
pub item: ItemRef,
pub count: i32,
}Expand description
The result of a crafting recipe.
Fields§
§item: ItemRef§count: i32Implementations§
Source§impl RecipeResult
impl RecipeResult
Sourcepub fn to_item_stack(&self) -> ItemStack
pub fn to_item_stack(&self) -> ItemStack
Creates an ItemStack from this result.
Trait Implementations§
Source§impl Clone for RecipeResult
impl Clone for RecipeResult
Source§fn clone(&self) -> RecipeResult
fn clone(&self) -> RecipeResult
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 moreAuto Trait Implementations§
impl Freeze for RecipeResult
impl RefUnwindSafe for RecipeResult
impl Send for RecipeResult
impl Sync for RecipeResult
impl Unpin for RecipeResult
impl UnsafeUnpin for RecipeResult
impl UnwindSafe for RecipeResult
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