Struct valence_generated::item::FoodComponent
source · pub struct FoodComponent {
pub hunger: u16,
pub saturation: f32,
pub always_edible: bool,
pub meat: bool,
pub snack: bool,
}
Expand description
Contains food information about an item.
Only food items have a food component.
Fields§
§hunger: u16
§saturation: f32
§always_edible: bool
§meat: bool
§snack: bool
Trait Implementations§
source§impl Clone for FoodComponent
impl Clone for FoodComponent
source§fn clone(&self) -> FoodComponent
fn clone(&self) -> FoodComponent
Returns a copy of the value. Read more
1.0.0 · 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 FoodComponent
impl Debug for FoodComponent
source§impl PartialEq for FoodComponent
impl PartialEq for FoodComponent
source§impl PartialOrd for FoodComponent
impl PartialOrd for FoodComponent
impl Copy for FoodComponent
impl StructuralPartialEq for FoodComponent
Auto Trait Implementations§
impl Freeze for FoodComponent
impl RefUnwindSafe for FoodComponent
impl Send for FoodComponent
impl Sync for FoodComponent
impl Unpin for FoodComponent
impl UnwindSafe for FoodComponent
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)