Enum screeps::enums::OwnedStructureObject  
source · 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
§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 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