#[non_exhaustive]#[repr(u8)]pub enum ProjectileType {
Arrow = 0,
RifleCartridge = 1,
PistolCartridge = 2,
Shotshell = 3,
AirRiflePellet = 4,
Other = 5,
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Implementations§
Trait Implementations§
Source§impl Clone for ProjectileType
impl Clone for ProjectileType
Source§fn clone(&self) -> ProjectileType
fn clone(&self) -> ProjectileType
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 moreSource§impl Debug for ProjectileType
impl Debug for ProjectileType
Source§impl Hash for ProjectileType
impl Hash for ProjectileType
Source§impl PartialEq for ProjectileType
impl PartialEq for ProjectileType
Source§fn eq(&self, other: &ProjectileType) -> bool
fn eq(&self, other: &ProjectileType) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ProjectileType
impl Eq for ProjectileType
impl StructuralPartialEq for ProjectileType
Auto Trait Implementations§
impl Freeze for ProjectileType
impl RefUnwindSafe for ProjectileType
impl Send for ProjectileType
impl Sync for ProjectileType
impl Unpin for ProjectileType
impl UnsafeUnpin for ProjectileType
impl UnwindSafe for ProjectileType
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