pub enum Any {
Show 189 variants
Commander,
WindTurbine,
Solar,
MetalStorage,
EnergyStorage,
MetalExtractor,
EnergyConverter,
BotLab,
VehiclePlant,
AirPlant,
HovercraftPlatform,
Camera,
Radar,
Teeth,
LightLaserTower,
LightAntiAir,
FloatingLightAntiAir,
TorpedoLauncher,
UnderwaterMetalStorage,
UnderwaterEnergyStorage,
NavalEnergyConverter,
Shipyard,
TidalGenerator,
FloatingTeeth,
FloatingRadar,
FloatingHovercraftPlatform,
OffshoreTorpedoLauncher,
T1AirConstructor,
T1AirScout,
T1Fighter,
T1Bomber,
LightParalyzerDrone,
T1AirTransport,
AdvancedSolar,
GeothermalPowerplant,
ArmedMetalExtractor,
AircraftRepairPad,
UnderwaterAdvancedGeothermalPowerplant,
AdvancedAircraftPlant,
ConstructionTurret,
AreaControlLaserTower,
ElementalTurret,
LaserTower,
Artillery,
AntiAirMissle,
RadarJammer,
AntiRadar,
T2AirConstructor,
RadarSonarAircraft,
StealthFighter,
Gunship,
StrategicBomber,
TorpedoBomber,
HeavyTransport,
FusionReactor,
AdvancedFusionReactor,
AdvancedGeothermalPowerplant,
GeothermalWeapon,
Unknown0,
AdvancedMetalExtractor,
AdvancedArmoredMetalExtractor,
WaterAircraftRepairPad,
HardenedEnergyStorage,
HardenedMetalStorage,
AdvancedRadar,
LongRangeJammer,
FortificationWall,
AdvancedEnergyConverter,
IntrusionDetector,
PlasmaDeflector,
EnergyWeapon,
RadarTargeting,
PopUpBattery,
PopUpPlasmaArtillery,
AntiAirFlak,
LongRangeAntiAir,
SeaplanePlatform,
TacticalMissileLauncher,
NuclearSilo,
AntiNukeLauncher,
LongRangePlasmaCannon,
RapidFireLongRangePlasmaCannon,
ExperimentalGantry,
T1BotConstructor,
T1RessurectionBot,
FastInfantryBot,
RocketBot,
LightPlasmaBot,
AmphibiousAntiAirBot,
AdvancedBotLab,
T2BotConstructor,
FastAssaultBot,
AmphibiousBot,
HeavilyArmoredAssaultBot,
ArmoredAssaultBot,
SpiderBot,
MortarBot,
CrawlingBomb,
HeavyRocketBot,
AdvancedCrawlingBomb,
DecoyCommander,
RadarBot,
SpyBot,
StealthBot,
CombatEngineer,
JammerBot,
HeavyAntiAir,
Unknown1,
T1VehicleConstructor,
AmphibiousConstructor,
Minelayer,
LightScoutVehicle,
LightTank,
LightAmphibiousTank,
MediumAssaultTank,
LightMobileArtillery,
MissileTruck,
AntiSwarmTank,
LightMine,
MediumMine,
HeavyMine,
AdvancedVehiclePlant,
T2VehicleConstructor,
RadarJammerVehicle,
HeavyAssaultTank,
StealthyRocketLauncher,
HeavyMissileTank,
MobileArtilleryTank,
HeavyArtilleryTank,
VeryHeavyAssaultTank,
MediumAmphibiousTank,
HeavyAmphibiousTank,
VeryHeavyAmphibiousTank,
AntiAirFlakTank,
AntiNukeTank,
RadarVehicle,
MobileHeavyTurretExperimental,
AllTerrainAssaultExperimental,
AssaultBotExperimental,
AmphibiousSiegeExperimental,
HeavyRocketExperimental,
HeavyLaserHovertankExperimental,
T1HovercraftConstructor,
FastAttackHovertank,
Hovertank,
AssaultHovertank,
RocketHovertank,
AntiAirHovertank,
NavalConstructionTurret,
AmphibiousComplex,
FloatingHeavyLaserTower,
AdvancedShipyard,
UnderwaterGeothermalPowerplant,
PopUpTorpedoLauncher,
T1ShipConstructor,
RessurectionSub,
LightGunBoat,
MissileCorvette,
AssaultFrigate,
Destroyer,
Sub,
T2ShipConstructor,
NavalEngineer,
Cruiser,
FastAssaultSubmarine,
LongRangeBattleSubmarine,
AntiAirShip,
RadarJammerShip,
AircraftCarrier,
Battleship,
CruiseMissileShip,
Flagship,
FloatingHeavyMine,
UnderwaterExperimentalGantry,
UnderwaterFusionReactor,
UnderwaterMetalConverter,
UnderwaterEnergyConverter,
AdvancedSonar,
NavalAdvancedRadarTargeting,
AdvancedTorpedoLauncher,
NavalAntiAirGun,
FloatingMultiweaponPlatform,
SeaplaneConstructor,
SeaplaneGunship,
SeaplaneBomber,
SeaplaneTorpedoGunship,
SeaplaneFighter,
SeaplaneRadarSonar,
Unknown,
}
Variants§
Commander
WindTurbine
Solar
MetalStorage
EnergyStorage
MetalExtractor
EnergyConverter
BotLab
VehiclePlant
AirPlant
HovercraftPlatform
Camera
Radar
Teeth
LightLaserTower
LightAntiAir
FloatingLightAntiAir
TorpedoLauncher
UnderwaterMetalStorage
UnderwaterEnergyStorage
Shipyard
TidalGenerator
FloatingTeeth
FloatingRadar
FloatingHovercraftPlatform
OffshoreTorpedoLauncher
T1AirConstructor
T1AirScout
T1Fighter
T1Bomber
LightParalyzerDrone
T1AirTransport
AdvancedSolar
GeothermalPowerplant
ArmedMetalExtractor
AircraftRepairPad
UnderwaterAdvancedGeothermalPowerplant
AdvancedAircraftPlant
ConstructionTurret
AreaControlLaserTower
ElementalTurret
LaserTower
Artillery
AntiAirMissle
RadarJammer
AntiRadar
T2AirConstructor
RadarSonarAircraft
StealthFighter
Gunship
StrategicBomber
TorpedoBomber
HeavyTransport
FusionReactor
AdvancedFusionReactor
AdvancedGeothermalPowerplant
GeothermalWeapon
Unknown0
AdvancedMetalExtractor
AdvancedArmoredMetalExtractor
WaterAircraftRepairPad
HardenedEnergyStorage
HardenedMetalStorage
AdvancedRadar
LongRangeJammer
FortificationWall
AdvancedEnergyConverter
IntrusionDetector
PlasmaDeflector
EnergyWeapon
RadarTargeting
PopUpBattery
PopUpPlasmaArtillery
AntiAirFlak
LongRangeAntiAir
SeaplanePlatform
TacticalMissileLauncher
NuclearSilo
AntiNukeLauncher
LongRangePlasmaCannon
RapidFireLongRangePlasmaCannon
ExperimentalGantry
T1BotConstructor
T1RessurectionBot
FastInfantryBot
RocketBot
LightPlasmaBot
AmphibiousAntiAirBot
AdvancedBotLab
T2BotConstructor
FastAssaultBot
AmphibiousBot
HeavilyArmoredAssaultBot
ArmoredAssaultBot
SpiderBot
MortarBot
CrawlingBomb
HeavyRocketBot
AdvancedCrawlingBomb
DecoyCommander
RadarBot
SpyBot
StealthBot
CombatEngineer
JammerBot
HeavyAntiAir
Unknown1
T1VehicleConstructor
AmphibiousConstructor
Minelayer
LightScoutVehicle
LightTank
LightAmphibiousTank
MediumAssaultTank
LightMobileArtillery
MissileTruck
AntiSwarmTank
LightMine
MediumMine
HeavyMine
AdvancedVehiclePlant
T2VehicleConstructor
RadarJammerVehicle
HeavyAssaultTank
StealthyRocketLauncher
HeavyMissileTank
MobileArtilleryTank
HeavyArtilleryTank
VeryHeavyAssaultTank
MediumAmphibiousTank
HeavyAmphibiousTank
VeryHeavyAmphibiousTank
AntiAirFlakTank
AntiNukeTank
RadarVehicle
MobileHeavyTurretExperimental
AllTerrainAssaultExperimental
AssaultBotExperimental
AmphibiousSiegeExperimental
HeavyRocketExperimental
HeavyLaserHovertankExperimental
T1HovercraftConstructor
FastAttackHovertank
Hovertank
AssaultHovertank
RocketHovertank
AntiAirHovertank
AmphibiousComplex
FloatingHeavyLaserTower
AdvancedShipyard
UnderwaterGeothermalPowerplant
PopUpTorpedoLauncher
T1ShipConstructor
RessurectionSub
LightGunBoat
MissileCorvette
AssaultFrigate
Destroyer
Sub
T2ShipConstructor
Cruiser
FastAssaultSubmarine
LongRangeBattleSubmarine
AntiAirShip
RadarJammerShip
AircraftCarrier
Battleship
CruiseMissileShip
Flagship
FloatingHeavyMine
UnderwaterExperimentalGantry
UnderwaterFusionReactor
UnderwaterMetalConverter
UnderwaterEnergyConverter
AdvancedSonar
AdvancedTorpedoLauncher
FloatingMultiweaponPlatform
SeaplaneConstructor
SeaplaneGunship
SeaplaneBomber
SeaplaneTorpedoGunship
SeaplaneFighter
SeaplaneRadarSonar
Unknown
Trait Implementations§
Source§impl Ord for Any
impl Ord for Any
Source§impl PartialEq<Any> for UnitDefKind
impl PartialEq<Any> for UnitDefKind
Source§impl PartialEq<UnitDefKind> for Any
impl PartialEq<UnitDefKind> for Any
Source§impl PartialOrd for Any
impl PartialOrd for Any
impl Copy for Any
impl Eq for Any
impl StructuralPartialEq for Any
Auto Trait Implementations§
impl Freeze for Any
impl RefUnwindSafe for Any
impl Send for Any
impl Sync for Any
impl Unpin for Any
impl UnwindSafe for Any
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§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.