pub enum OwnedStructureObject {
Show 16 variants
StructureController(StructureController),
StructureExtension(StructureExtension),
StructureExtractor(StructureExtractor),
StructureFactory(StructureFactory),
StructureInvaderCore(StructureInvaderCore),
StructureKeeperLair(StructureKeeperLair),
StructureLab(StructureLab),
StructureLink(StructureLink),
StructureNuker(StructureNuker),
StructureObserver(StructureObserver),
StructurePowerSpawn(StructurePowerSpawn),
StructureRampart(StructureRampart),
StructureSpawn(StructureSpawn),
StructureStorage(StructureStorage),
StructureTerminal(StructureTerminal),
StructureTower(StructureTower),
}
Expand description
Enum used for converting a Structure
into a typed object of its specific
structure type.
Variants§
StructureController(StructureController)
StructureExtension(StructureExtension)
StructureExtractor(StructureExtractor)
StructureFactory(StructureFactory)
StructureInvaderCore(StructureInvaderCore)
StructureKeeperLair(StructureKeeperLair)
StructureLab(StructureLab)
StructureLink(StructureLink)
StructureNuker(StructureNuker)
StructureObserver(StructureObserver)
StructurePowerSpawn(StructurePowerSpawn)
StructureRampart(StructureRampart)
StructureSpawn(StructureSpawn)
StructureStorage(StructureStorage)
StructureTerminal(StructureTerminal)
StructureTower(StructureTower)
Trait Implementations§
Source§impl From<StructureController> for OwnedStructureObject
impl From<StructureController> for OwnedStructureObject
Source§fn from(v: StructureController) -> OwnedStructureObject
fn from(v: StructureController) -> OwnedStructureObject
Converts to this type from the input type.
Source§impl From<StructureExtension> for OwnedStructureObject
impl From<StructureExtension> for OwnedStructureObject
Source§fn from(v: StructureExtension) -> OwnedStructureObject
fn from(v: StructureExtension) -> OwnedStructureObject
Converts to this type from the input type.
Source§impl From<StructureExtractor> for OwnedStructureObject
impl From<StructureExtractor> for OwnedStructureObject
Source§fn from(v: StructureExtractor) -> OwnedStructureObject
fn from(v: StructureExtractor) -> OwnedStructureObject
Converts to this type from the input type.
Source§impl From<StructureFactory> for OwnedStructureObject
impl From<StructureFactory> for OwnedStructureObject
Source§fn from(v: StructureFactory) -> OwnedStructureObject
fn from(v: StructureFactory) -> OwnedStructureObject
Converts to this type from the input type.
Source§impl From<StructureInvaderCore> for OwnedStructureObject
impl From<StructureInvaderCore> for OwnedStructureObject
Source§fn from(v: StructureInvaderCore) -> OwnedStructureObject
fn from(v: StructureInvaderCore) -> OwnedStructureObject
Converts to this type from the input type.
Source§impl From<StructureKeeperLair> for OwnedStructureObject
impl From<StructureKeeperLair> for OwnedStructureObject
Source§fn from(v: StructureKeeperLair) -> OwnedStructureObject
fn from(v: StructureKeeperLair) -> OwnedStructureObject
Converts to this type from the input type.
Source§impl From<StructureLab> for OwnedStructureObject
impl From<StructureLab> for OwnedStructureObject
Source§fn from(v: StructureLab) -> OwnedStructureObject
fn from(v: StructureLab) -> OwnedStructureObject
Converts to this type from the input type.
Source§impl From<StructureLink> for OwnedStructureObject
impl From<StructureLink> for OwnedStructureObject
Source§fn from(v: StructureLink) -> OwnedStructureObject
fn from(v: StructureLink) -> OwnedStructureObject
Converts to this type from the input type.
Source§impl From<StructureNuker> for OwnedStructureObject
impl From<StructureNuker> for OwnedStructureObject
Source§fn from(v: StructureNuker) -> OwnedStructureObject
fn from(v: StructureNuker) -> OwnedStructureObject
Converts to this type from the input type.
Source§impl From<StructureObserver> for OwnedStructureObject
impl From<StructureObserver> for OwnedStructureObject
Source§fn from(v: StructureObserver) -> OwnedStructureObject
fn from(v: StructureObserver) -> OwnedStructureObject
Converts to this type from the input type.
Source§impl From<StructurePowerSpawn> for OwnedStructureObject
impl From<StructurePowerSpawn> for OwnedStructureObject
Source§fn from(v: StructurePowerSpawn) -> OwnedStructureObject
fn from(v: StructurePowerSpawn) -> OwnedStructureObject
Converts to this type from the input type.
Source§impl From<StructureRampart> for OwnedStructureObject
impl From<StructureRampart> for OwnedStructureObject
Source§fn from(v: StructureRampart) -> OwnedStructureObject
fn from(v: StructureRampart) -> OwnedStructureObject
Converts to this type from the input type.
Source§impl From<StructureSpawn> for OwnedStructureObject
impl From<StructureSpawn> for OwnedStructureObject
Source§fn from(v: StructureSpawn) -> OwnedStructureObject
fn from(v: StructureSpawn) -> OwnedStructureObject
Converts to this type from the input type.
Source§impl From<StructureStorage> for OwnedStructureObject
impl From<StructureStorage> for OwnedStructureObject
Source§fn from(v: StructureStorage) -> OwnedStructureObject
fn from(v: StructureStorage) -> OwnedStructureObject
Converts to this type from the input type.
Source§impl From<StructureTerminal> for OwnedStructureObject
impl From<StructureTerminal> for OwnedStructureObject
Source§fn from(v: StructureTerminal) -> OwnedStructureObject
fn from(v: StructureTerminal) -> OwnedStructureObject
Converts to this type from the input type.
Source§impl From<StructureTower> for OwnedStructureObject
impl From<StructureTower> for OwnedStructureObject
Source§fn from(v: StructureTower) -> OwnedStructureObject
fn from(v: StructureTower) -> OwnedStructureObject
Converts to this type from the input type.
Source§impl TryFrom<StructureObject> for OwnedStructureObject
impl TryFrom<StructureObject> for OwnedStructureObject
Source§type Error = OwnedStructureConversionError
type Error = OwnedStructureConversionError
The type returned in the event of a conversion error.
Source§impl TryInto<StructureLab> for OwnedStructureObject
impl TryInto<StructureLab> for OwnedStructureObject
Source§impl TryInto<StructureLink> for OwnedStructureObject
impl TryInto<StructureLink> for OwnedStructureObject
Source§impl TryInto<StructureNuker> for OwnedStructureObject
impl TryInto<StructureNuker> for OwnedStructureObject
Source§impl TryInto<StructureSpawn> for OwnedStructureObject
impl TryInto<StructureSpawn> for OwnedStructureObject
Source§impl TryInto<StructureTower> for OwnedStructureObject
impl TryInto<StructureTower> for OwnedStructureObject
Auto Trait Implementations§
impl Freeze for OwnedStructureObject
impl RefUnwindSafe for OwnedStructureObject
impl !Send for OwnedStructureObject
impl !Sync for OwnedStructureObject
impl Unpin for OwnedStructureObject
impl UnwindSafe for OwnedStructureObject
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