pub struct ItemStats {
pub name: String,
pub damage: f32,
pub defense: f32,
pub speed: f32,
pub magic: f32,
pub rarity_score: f32,
}Expand description
Stats for a generated item.
Fields§
§name: String§damage: f32§defense: f32§speed: f32§magic: f32§rarity_score: f32Trait Implementations§
Auto Trait Implementations§
impl Freeze for ItemStats
impl RefUnwindSafe for ItemStats
impl Send for ItemStats
impl Sync for ItemStats
impl Unpin for ItemStats
impl UnsafeUnpin for ItemStats
impl UnwindSafe for ItemStats
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