#[repr(u64)]pub enum WeaponFlag {
Show 59 variants
NoWeapon = 0,
LGB = 2,
TvGB = 4,
SNSGB = 8,
HEBomb = 16,
Penetrator = 32,
NapalmBomb = 64,
FAEBomb = 128,
ClusterBomb = 256,
Dispenser = 512,
CandleBomb = 1_024,
ParachuteBomb = 2_147_483_648,
GuidedBomb = 14,
AnyUnguidedBomb = 2_147_485_680,
AnyBomb = 2_147_485_694,
LightRocket = 2_048,
MarkerRocket = 4_096,
CandleRocket = 8_192,
HeavyRocket = 16_384,
AnyRocket = 30_720,
AntiRadarMissile = 32_768,
AntiShipMissile = 65_536,
AntiTankMissile = 131_072,
FireAndForgetASM = 262_144,
LaserASM = 524_288,
TeleASM = 1_048_576,
CruiseMissile = 2_097_152,
GuidedASM = 1_572_864,
TacticalASM = 1_835_008,
AnyASM = 4_161_536,
SRAAM = 4_194_304,
MRAAM = 8_388_608,
LRAAM = 16_777_216,
IRAAM = 33_554_432,
SARAAM = 67_108_864,
ARAAM = 134_217_728,
AnyAAM = 264_241_152,
AnyMissile = 268_402_688,
AnyAutonomousMissile = 36_012_032,
GunPod = 268_435_456,
BuiltInCannon = 536_870_912,
Cannons = 805_306_368,
AntiRadarMissile2 = 1_073_741_824,
SmokeShell = 17_179_869_184,
IlluminationShell = 34_359_738_368,
MarkerShell = 51_539_607_552,
SubmunitionDispenserShell = 68_719_476_736,
GuidedShell = 137_438_953_472,
ConventionalShell = 206_963_736_576,
AnyShell = 258_503_344_128,
Decoys = 8_589_934_592,
Torpedo = 4_294_967_296,
AnyAGWeapon = 2_956_984_318,
AnyAAWeapon = 1_069_547_520,
UnguidedWeapon = 2_952_822_768,
GuidedWeapon = 268_402_702,
AnyWeapon = 3_221_225_470,
MarkerWeapon = 13_312,
ArmWeapon = 209_379_642_366,
}
Variants§
NoWeapon = 0
LGB = 2
TvGB = 4
SNSGB = 8
HEBomb = 16
Penetrator = 32
NapalmBomb = 64
FAEBomb = 128
ClusterBomb = 256
Dispenser = 512
CandleBomb = 1_024
ParachuteBomb = 2_147_483_648
GuidedBomb = 14
AnyUnguidedBomb = 2_147_485_680
AnyBomb = 2_147_485_694
LightRocket = 2_048
MarkerRocket = 4_096
CandleRocket = 8_192
HeavyRocket = 16_384
AnyRocket = 30_720
AntiRadarMissile = 32_768
AntiShipMissile = 65_536
AntiTankMissile = 131_072
FireAndForgetASM = 262_144
LaserASM = 524_288
TeleASM = 1_048_576
CruiseMissile = 2_097_152
GuidedASM = 1_572_864
TacticalASM = 1_835_008
AnyASM = 4_161_536
SRAAM = 4_194_304
MRAAM = 8_388_608
LRAAM = 16_777_216
IRAAM = 33_554_432
SARAAM = 67_108_864
ARAAM = 134_217_728
AnyAAM = 264_241_152
AnyMissile = 268_402_688
AnyAutonomousMissile = 36_012_032
GunPod = 268_435_456
BuiltInCannon = 536_870_912
Cannons = 805_306_368
AntiRadarMissile2 = 1_073_741_824
SmokeShell = 17_179_869_184
IlluminationShell = 34_359_738_368
MarkerShell = 51_539_607_552
SubmunitionDispenserShell = 68_719_476_736
GuidedShell = 137_438_953_472
ConventionalShell = 206_963_736_576
AnyShell = 258_503_344_128
Decoys = 8_589_934_592
Torpedo = 4_294_967_296
AnyAGWeapon = 2_956_984_318
AnyAAWeapon = 1_069_547_520
UnguidedWeapon = 2_952_822_768
GuidedWeapon = 268_402_702
AnyWeapon = 3_221_225_470
MarkerWeapon = 13_312
ArmWeapon = 209_379_642_366
Trait Implementations§
Source§impl Clone for WeaponFlag
impl Clone for WeaponFlag
Source§fn clone(&self) -> WeaponFlag
fn clone(&self) -> WeaponFlag
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 WeaponFlag
impl Debug for WeaponFlag
Source§impl<'de> Deserialize<'de> for WeaponFlag
impl<'de> Deserialize<'de> for WeaponFlag
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 WeaponFlag
impl<'lua> FromLua<'lua> for WeaponFlag
Source§impl Hash for WeaponFlag
impl Hash for WeaponFlag
Source§impl<'lua> IntoLua<'lua> for WeaponFlag
impl<'lua> IntoLua<'lua> for WeaponFlag
Source§impl Ord for WeaponFlag
impl Ord for WeaponFlag
Source§fn cmp(&self, other: &WeaponFlag) -> Ordering
fn cmp(&self, other: &WeaponFlag) -> 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 WeaponFlag
impl PartialEq for WeaponFlag
Source§impl PartialOrd for WeaponFlag
impl PartialOrd for WeaponFlag
Source§impl Serialize for WeaponFlag
impl Serialize for WeaponFlag
impl Copy for WeaponFlag
impl Eq for WeaponFlag
impl StructuralPartialEq for WeaponFlag
Auto Trait Implementations§
impl Freeze for WeaponFlag
impl RefUnwindSafe for WeaponFlag
impl Send for WeaponFlag
impl Sync for WeaponFlag
impl Unpin for WeaponFlag
impl UnwindSafe for WeaponFlag
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.