pub struct Fruit {
pub ripeness: f32,
pub picked: bool,
}Expand description
FruitComponent ripeness (0–1) and picked this season.
Fields§
§ripeness: f32The ripeness, from 0 to 1.
picked: boolWhether it was picked this season.
Trait Implementations§
impl Copy for Fruit
impl StructuralPartialEq for Fruit
Auto Trait Implementations§
impl Freeze for Fruit
impl RefUnwindSafe for Fruit
impl Send for Fruit
impl Sync for Fruit
impl Unpin for Fruit
impl UnsafeUnpin for Fruit
impl UnwindSafe for Fruit
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