pub enum WeaponKind {
Knife,
Pistol,
SubmachineGun,
Rifle,
SniperRifle,
Shotgun,
MachineGun,
Grenade,
C4,
StackableItem,
Unknown,
}Expand description
Weapon category as reported by CS2.
Variants§
Knife
Knife.
Pistol
Pistol.
SubmachineGun
Submachine gun.
Rifle
Rifle.
SniperRifle
Sniper rifle.
Shotgun
Shotgun.
MachineGun
Heavy / machine gun.
Grenade
Grenade.
C4
C4 explosive.
StackableItem
Taser / Zeus.
Unknown
Unrecognized / future weapon class.
Trait Implementations§
Source§impl Clone for WeaponKind
impl Clone for WeaponKind
Source§fn clone(&self) -> WeaponKind
fn clone(&self) -> WeaponKind
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 WeaponKind
impl Debug for WeaponKind
Source§impl Default for WeaponKind
impl Default for WeaponKind
Source§fn default() -> WeaponKind
fn default() -> WeaponKind
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for WeaponKind
impl<'de> Deserialize<'de> for WeaponKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for WeaponKind
impl Hash for WeaponKind
Source§impl PartialEq for WeaponKind
impl PartialEq for WeaponKind
Source§impl Serialize for WeaponKind
impl Serialize for WeaponKind
impl Copy for WeaponKind
impl Eq for WeaponKind
impl StructuralPartialEq for WeaponKind
Auto Trait Implementations§
impl Freeze for WeaponKind
impl RefUnwindSafe for WeaponKind
impl Send for WeaponKind
impl Sync for WeaponKind
impl Unpin for WeaponKind
impl UnsafeUnpin for WeaponKind
impl UnwindSafe for WeaponKind
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