Enum esl::WeaponType
source · #[repr(u16)]pub enum WeaponType {
Show 14 variants
ShortBladeOneHand = 0,
LongBladeOneHand = 1,
LongBladeTwoClose = 2,
BluntOneHand = 3,
BluntTwoClose = 4,
BluntTwoWide = 5,
SpearTwoWide = 6,
AxeOneHand = 7,
AxeTwoClose = 8,
MarksmanBow = 9,
MarksmanCrossbow = 10,
MarksmanThrown = 11,
Arrow = 12,
Bolt = 13,
}
Variants§
ShortBladeOneHand = 0
LongBladeOneHand = 1
LongBladeTwoClose = 2
BluntOneHand = 3
BluntTwoClose = 4
BluntTwoWide = 5
SpearTwoWide = 6
AxeOneHand = 7
AxeTwoClose = 8
MarksmanBow = 9
MarksmanCrossbow = 10
MarksmanThrown = 11
Arrow = 12
Bolt = 13
Implementations§
Trait Implementations§
source§impl Clone for WeaponType
impl Clone for WeaponType
source§fn clone(&self) -> WeaponType
fn clone(&self) -> WeaponType
Returns a copy 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 WeaponType
impl Debug for WeaponType
source§impl<'de> Deserialize<'de> for WeaponType
impl<'de> Deserialize<'de> for WeaponType
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 WeaponType
impl Hash for WeaponType
source§impl Ord for WeaponType
impl Ord for WeaponType
source§fn cmp(&self, other: &WeaponType) -> Ordering
fn cmp(&self, other: &WeaponType) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for WeaponType
impl PartialEq for WeaponType
source§fn eq(&self, other: &WeaponType) -> bool
fn eq(&self, other: &WeaponType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for WeaponType
impl PartialOrd for WeaponType
source§fn partial_cmp(&self, other: &WeaponType) -> Option<Ordering>
fn partial_cmp(&self, other: &WeaponType) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for WeaponType
impl Serialize for WeaponType
source§impl Display for WeaponType
impl Display for WeaponType
source§fn fmt(&self, f: &mut std_fmt_Formatter<'_>) -> std_fmt_Result
fn fmt(&self, f: &mut std_fmt_Formatter<'_>) -> std_fmt_Result
Formats the value using the given formatter. Read more
source§impl FromStr for WeaponType
impl FromStr for WeaponType
impl Copy for WeaponType
impl Eq for WeaponType
impl StructuralEq for WeaponType
impl StructuralPartialEq for WeaponType
Auto Trait Implementations§
impl RefUnwindSafe for WeaponType
impl Send for WeaponType
impl Sync for WeaponType
impl Unpin for WeaponType
impl UnwindSafe for WeaponType
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