Struct minecraft_assets::recipes::Ingredient
source · pub struct Ingredient {
pub item: String,
pub tag: String,
}Expand description
A struct for ingredient data
Fields§
§item: StringThe id of the item
tag: StringThe tag of the item
Trait Implementations§
source§impl Debug for Ingredient
impl Debug for Ingredient
source§impl PartialEq for Ingredient
impl PartialEq for Ingredient
source§fn eq(&self, other: &Ingredient) -> bool
fn eq(&self, other: &Ingredient) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for Ingredient
Auto Trait Implementations§
impl Freeze for Ingredient
impl RefUnwindSafe for Ingredient
impl Send for Ingredient
impl Sync for Ingredient
impl Unpin for Ingredient
impl UnwindSafe for Ingredient
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