#[repr(C)]pub struct WeaponSlotData {
pub id: u8,
pub ammo: u32,
}Expand description
WeaponSlotData in player.hpp.
Fields§
§id: u8id.
ammo: u32ammo.
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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for WeaponSlotData
Source§impl Debug for WeaponSlotData
impl Debug for WeaponSlotData
Source§impl Default for WeaponSlotData
impl Default for WeaponSlotData
Source§fn default() -> WeaponSlotData
fn default() -> WeaponSlotData
The C++ struct’s own defaults.
Source§impl PartialEq for WeaponSlotData
impl PartialEq for WeaponSlotData
impl StructuralPartialEq for WeaponSlotData
Source§impl VirtualReturn for WeaponSlotData
impl VirtualReturn for WeaponSlotData
Source§type Raw = WeaponSlotData
type Raw = WeaponSlotData
The type the foreign function is declared to return.
Source§fn from_raw(raw: WeaponSlotData) -> WeaponSlotData
fn from_raw(raw: WeaponSlotData) -> WeaponSlotData
The value the caller sees.
Auto Trait Implementations§
impl Freeze for WeaponSlotData
impl RefUnwindSafe for WeaponSlotData
impl Send for WeaponSlotData
impl Sync for WeaponSlotData
impl Unpin for WeaponSlotData
impl UnsafeUnpin 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