pub struct Weapon {
pub classification: WeaponType,
pub level: i32,
pub exp: i32,
pub ammo: i32,
pub max_ammo: i32,
}Fields§
§classification: WeaponTypetype of this weapon
level: i32normally will be 0 to 3.
exp: i32§ammo: i32§max_ammo: i32zero means infinite ammos.
Trait Implementations§
impl Copy for Weapon
impl Eq for Weapon
impl StructuralPartialEq for Weapon
Auto Trait Implementations§
impl Freeze for Weapon
impl RefUnwindSafe for Weapon
impl Send for Weapon
impl Sync for Weapon
impl Unpin for Weapon
impl UnwindSafe for Weapon
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