#[repr(C)]pub struct WeaponSlotData {
pub id: PlayerWeapon,
pub ammo: u32,
}Expand description
Weapon Information
Fields§
§id: PlayerWeaponweapon id
ammo: u32amount of ammunition
Implementations§
Source§impl WeaponSlotData
impl WeaponSlotData
pub fn new(id: PlayerWeapon, ammo: u32) -> Self
Trait Implementations§
Source§impl Clone for WeaponSlotData
impl Clone for WeaponSlotData
Source§fn clone(&self) -> WeaponSlotData
fn clone(&self) -> WeaponSlotData
Returns a duplicate 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 WeaponSlotData
impl Debug for WeaponSlotData
Source§impl Default for WeaponSlotData
impl Default for WeaponSlotData
Source§fn default() -> WeaponSlotData
fn default() -> WeaponSlotData
Returns the “default value” for a type. Read more
impl Copy for WeaponSlotData
Auto Trait Implementations§
impl Freeze for WeaponSlotData
impl RefUnwindSafe for WeaponSlotData
impl Send for WeaponSlotData
impl Sync for WeaponSlotData
impl Unpin for WeaponSlotData
impl UnwindSafe for WeaponSlotData
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