Enum WeaponFlag

Source
#[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

Source§

fn clone(&self) -> WeaponFlag

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for WeaponFlag

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for WeaponFlag

Source§

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

Source§

fn from_lua(value: Value<'lua>, lua: &'lua Lua) -> LuaResult<Self>

Performs the conversion.
Source§

impl Hash for WeaponFlag

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl<'lua> IntoLua<'lua> for WeaponFlag

Source§

fn into_lua(self, _lua: &'lua Lua) -> LuaResult<Value<'lua>>

Performs the conversion.
Source§

impl Ord for WeaponFlag

Source§

fn cmp(&self, other: &WeaponFlag) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq for WeaponFlag

Source§

fn eq(&self, other: &WeaponFlag) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialOrd for WeaponFlag

Source§

fn partial_cmp(&self, other: &WeaponFlag) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl Serialize for WeaponFlag

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl Copy for WeaponFlag

Source§

impl Eq for WeaponFlag

Source§

impl StructuralPartialEq for WeaponFlag

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
Source§

impl<'lua, T> DeepClone<'lua> for T
where T: IntoLua<'lua> + FromLua<'lua> + Clone,

Source§

fn deep_clone(&self, lua: &'lua Lua) -> Result<T, Error>

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<'lua, T> FromLuaMulti<'lua> for T
where T: FromLua<'lua>,

Source§

fn from_lua_multi(values: MultiValue<'lua>, lua: &'lua Lua) -> Result<T, Error>

Performs the conversion. Read more
Source§

fn from_lua_args( args: MultiValue<'lua>, i: usize, to: Option<&str>, lua: &'lua Lua, ) -> Result<T, Error>

Source§

unsafe fn from_stack_multi(nvals: i32, lua: &'lua Lua) -> Result<T, Error>

Source§

unsafe fn from_stack_args( nargs: i32, i: usize, to: Option<&str>, lua: &'lua Lua, ) -> Result<T, Error>

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<'lua, T> IntoLuaMulti<'lua> for T
where T: IntoLua<'lua>,

Source§

fn into_lua_multi(self, lua: &'lua Lua) -> Result<MultiValue<'lua>, Error>

Performs the conversion.
Source§

unsafe fn push_into_stack_multi(self, lua: &'lua Lua) -> Result<i32, Error>

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> Serialize for T
where T: Serialize + ?Sized,

Source§

fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<(), Error>

Source§

fn do_erased_serialize( &self, serializer: &mut dyn Serializer, ) -> Result<(), ErrorImpl>

Source§

impl<SS, SP> SupersetOf<SS> for SP
where SS: SubsetOf<SP>,

Source§

fn to_subset(&self) -> Option<SS>

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
Source§

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

Use with care! Same as self.to_subset but without any property checks. Always succeeds.
Source§

fn from_subset(element: &SS) -> SP

The inclusion map: converts self to the equivalent element of its superset.
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> Scalar for T
where T: 'static + Clone + PartialEq + Debug,