pub struct Food {
pub kcal: f64,
pub protein: f64,
}Fields§
§kcal: f64kilocalories per 100g of this food
protein: f64grams of protein per 100g of this food
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Food
impl RefUnwindSafe for Food
impl Send for Food
impl Sync for Food
impl Unpin for Food
impl UnwindSafe for Food
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