#[repr(u8)]pub enum PlayerStat {
Show 21 variants
Car = 2,
Crash = 1,
Eject = 7,
ExtraAllyAAA = 17,
ExtraAllyFighters = 14,
ExtraAllySAM = 16,
ExtraAllyTransports = 15,
ExtraAllyTroops = 18,
ExtraAllyCoalition = 19,
ExtraEnemyAAA = 12,
ExtraEnemyFighters = 9,
ExtraEnemySAM = 11,
ExtraEnemyTransports = 10,
ExtraEnemyTroops = 13,
Land = 6,
Num = 20,
OldScore = 8,
Ping = 0,
Plane = 3,
Score = 5,
Ship = 4,
}
Variants§
Car = 2
Crash = 1
Eject = 7
ExtraAllyAAA = 17
ExtraAllyFighters = 14
ExtraAllySAM = 16
ExtraAllyTransports = 15
ExtraAllyTroops = 18
ExtraAllyCoalition = 19
ExtraEnemyAAA = 12
ExtraEnemyFighters = 9
ExtraEnemySAM = 11
ExtraEnemyTransports = 10
ExtraEnemyTroops = 13
Land = 6
Num = 20
OldScore = 8
Ping = 0
Plane = 3
Score = 5
Ship = 4
Trait Implementations§
Source§impl Clone for PlayerStat
impl Clone for PlayerStat
Source§fn clone(&self) -> PlayerStat
fn clone(&self) -> PlayerStat
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 PlayerStat
impl Debug for PlayerStat
Source§impl<'de> Deserialize<'de> for PlayerStat
impl<'de> Deserialize<'de> for PlayerStat
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<'lua> FromLua<'lua> for PlayerStat
impl<'lua> FromLua<'lua> for PlayerStat
Source§impl Hash for PlayerStat
impl Hash for PlayerStat
Source§impl<'lua> IntoLua<'lua> for PlayerStat
impl<'lua> IntoLua<'lua> for PlayerStat
Source§impl Ord for PlayerStat
impl Ord for PlayerStat
Source§fn cmp(&self, other: &PlayerStat) -> Ordering
fn cmp(&self, other: &PlayerStat) -> 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 PlayerStat
impl PartialEq for PlayerStat
Source§impl PartialOrd for PlayerStat
impl PartialOrd for PlayerStat
Source§impl Serialize for PlayerStat
impl Serialize for PlayerStat
impl Copy for PlayerStat
impl Eq for PlayerStat
impl StructuralPartialEq for PlayerStat
Auto Trait Implementations§
impl Freeze for PlayerStat
impl RefUnwindSafe for PlayerStat
impl Send for PlayerStat
impl Sync for PlayerStat
impl Unpin for PlayerStat
impl UnwindSafe for PlayerStat
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<'lua, T> FromLuaMulti<'lua> for Twhere
T: FromLua<'lua>,
impl<'lua, T> FromLuaMulti<'lua> for Twhere
T: FromLua<'lua>,
Source§fn from_lua_multi(values: MultiValue<'lua>, lua: &'lua Lua) -> Result<T, Error>
fn from_lua_multi(values: MultiValue<'lua>, lua: &'lua Lua) -> Result<T, Error>
Performs the conversion. Read more
fn from_lua_args( args: MultiValue<'lua>, i: usize, to: Option<&str>, lua: &'lua Lua, ) -> Result<T, Error>
unsafe fn from_stack_multi(nvals: i32, lua: &'lua Lua) -> Result<T, Error>
unsafe fn from_stack_args( nargs: i32, i: usize, to: Option<&str>, lua: &'lua Lua, ) -> Result<T, Error>
Source§impl<'lua, T> IntoLuaMulti<'lua> for Twhere
T: IntoLua<'lua>,
impl<'lua, T> IntoLuaMulti<'lua> for Twhere
T: IntoLua<'lua>,
Source§fn into_lua_multi(self, lua: &'lua Lua) -> Result<MultiValue<'lua>, Error>
fn into_lua_multi(self, lua: &'lua Lua) -> Result<MultiValue<'lua>, Error>
Performs the conversion.
unsafe fn push_into_stack_multi(self, lua: &'lua Lua) -> Result<i32, Error>
Source§impl<T> Serialize for T
impl<T> Serialize for T
fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<(), Error>
fn do_erased_serialize( &self, serializer: &mut dyn Serializer, ) -> Result<(), ErrorImpl>
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.