Enum screeps::enums::ObjectWithMaybeId  
source · pub enum ObjectWithMaybeId {
Show 35 variants
    ConstructionSite(ConstructionSite),
    Creep(Creep),
    Deposit(Deposit),
    Mineral(Mineral),
    Nuke(Nuke),
    PowerCreep(PowerCreep),
    Resource(Resource),
    Ruin(Ruin),
    ScoreCollector(ScoreCollector),
    ScoreContainer(ScoreContainer),
    Source(Source),
    StructureContainer(StructureContainer),
    StructureController(StructureController),
    StructureExtension(StructureExtension),
    StructureExtractor(StructureExtractor),
    StructureFactory(StructureFactory),
    StructureInvaderCore(StructureInvaderCore),
    StructureKeeperLair(StructureKeeperLair),
    StructureLab(StructureLab),
    StructureLink(StructureLink),
    StructureNuker(StructureNuker),
    StructureObserver(StructureObserver),
    StructurePortal(StructurePortal),
    StructurePowerBank(StructurePowerBank),
    StructurePowerSpawn(StructurePowerSpawn),
    StructureRampart(StructureRampart),
    StructureRoad(StructureRoad),
    StructureSpawn(StructureSpawn),
    StructureStorage(StructureStorage),
    StructureTerminal(StructureTerminal),
    StructureTower(StructureTower),
    StructureWall(StructureWall),
    SymbolContainer(SymbolContainer),
    SymbolDecoder(SymbolDecoder),
    Tombstone(Tombstone),
}Variants§
ConstructionSite(ConstructionSite)
Creep(Creep)
Deposit(Deposit)
Mineral(Mineral)
Nuke(Nuke)
PowerCreep(PowerCreep)
Resource(Resource)
Ruin(Ruin)
ScoreCollector(ScoreCollector)
Available on crate feature 
score only.ScoreContainer(ScoreContainer)
Available on crate feature 
score only.Source(Source)
StructureContainer(StructureContainer)
StructureController(StructureController)
StructureExtension(StructureExtension)
StructureExtractor(StructureExtractor)
StructureFactory(StructureFactory)
StructureInvaderCore(StructureInvaderCore)
StructureKeeperLair(StructureKeeperLair)
StructureLab(StructureLab)
StructureLink(StructureLink)
StructureNuker(StructureNuker)
StructureObserver(StructureObserver)
StructurePortal(StructurePortal)
StructurePowerBank(StructurePowerBank)
StructurePowerSpawn(StructurePowerSpawn)
StructureRampart(StructureRampart)
StructureRoad(StructureRoad)
StructureSpawn(StructureSpawn)
StructureStorage(StructureStorage)
StructureTerminal(StructureTerminal)
StructureTower(StructureTower)
StructureWall(StructureWall)
SymbolContainer(SymbolContainer)
Available on crate feature 
symbols only.SymbolDecoder(SymbolDecoder)
Available on crate feature 
symbols only.Tombstone(Tombstone)
Trait Implementations§
source§impl From<ConstructionSite> for ObjectWithMaybeId
 
impl From<ConstructionSite> for ObjectWithMaybeId
source§fn from(v: ConstructionSite) -> ObjectWithMaybeId
 
fn from(v: ConstructionSite) -> ObjectWithMaybeId
Converts to this type from the input type.
source§impl From<Creep> for ObjectWithMaybeId
 
impl From<Creep> for ObjectWithMaybeId
source§fn from(v: Creep) -> ObjectWithMaybeId
 
fn from(v: Creep) -> ObjectWithMaybeId
Converts to this type from the input type.
source§impl From<Deposit> for ObjectWithMaybeId
 
impl From<Deposit> for ObjectWithMaybeId
source§fn from(v: Deposit) -> ObjectWithMaybeId
 
fn from(v: Deposit) -> ObjectWithMaybeId
Converts to this type from the input type.
source§impl From<Mineral> for ObjectWithMaybeId
 
impl From<Mineral> for ObjectWithMaybeId
source§fn from(v: Mineral) -> ObjectWithMaybeId
 
fn from(v: Mineral) -> ObjectWithMaybeId
Converts to this type from the input type.
source§impl From<Nuke> for ObjectWithMaybeId
 
impl From<Nuke> for ObjectWithMaybeId
source§fn from(v: Nuke) -> ObjectWithMaybeId
 
fn from(v: Nuke) -> ObjectWithMaybeId
Converts to this type from the input type.
source§impl From<PowerCreep> for ObjectWithMaybeId
 
impl From<PowerCreep> for ObjectWithMaybeId
source§fn from(v: PowerCreep) -> ObjectWithMaybeId
 
fn from(v: PowerCreep) -> ObjectWithMaybeId
Converts to this type from the input type.
source§impl From<Resource> for ObjectWithMaybeId
 
impl From<Resource> for ObjectWithMaybeId
source§fn from(v: Resource) -> ObjectWithMaybeId
 
fn from(v: Resource) -> ObjectWithMaybeId
Converts to this type from the input type.
source§impl From<Ruin> for ObjectWithMaybeId
 
impl From<Ruin> for ObjectWithMaybeId
source§fn from(v: Ruin) -> ObjectWithMaybeId
 
fn from(v: Ruin) -> ObjectWithMaybeId
Converts to this type from the input type.
source§impl From<ScoreCollector> for ObjectWithMaybeId
Available on crate feature score only. 
impl From<ScoreCollector> for ObjectWithMaybeId
Available on crate feature 
score only.source§fn from(v: ScoreCollector) -> ObjectWithMaybeId
 
fn from(v: ScoreCollector) -> ObjectWithMaybeId
Converts to this type from the input type.
source§impl From<ScoreContainer> for ObjectWithMaybeId
Available on crate feature score only. 
impl From<ScoreContainer> for ObjectWithMaybeId
Available on crate feature 
score only.source§fn from(v: ScoreContainer) -> ObjectWithMaybeId
 
fn from(v: ScoreContainer) -> ObjectWithMaybeId
Converts to this type from the input type.
source§impl From<Source> for ObjectWithMaybeId
 
impl From<Source> for ObjectWithMaybeId
source§fn from(v: Source) -> ObjectWithMaybeId
 
fn from(v: Source) -> ObjectWithMaybeId
Converts to this type from the input type.
source§impl From<StructureContainer> for ObjectWithMaybeId
 
impl From<StructureContainer> for ObjectWithMaybeId
source§fn from(v: StructureContainer) -> ObjectWithMaybeId
 
fn from(v: StructureContainer) -> ObjectWithMaybeId
Converts to this type from the input type.
source§impl From<StructureController> for ObjectWithMaybeId
 
impl From<StructureController> for ObjectWithMaybeId
source§fn from(v: StructureController) -> ObjectWithMaybeId
 
fn from(v: StructureController) -> ObjectWithMaybeId
Converts to this type from the input type.
source§impl From<StructureExtension> for ObjectWithMaybeId
 
impl From<StructureExtension> for ObjectWithMaybeId
source§fn from(v: StructureExtension) -> ObjectWithMaybeId
 
fn from(v: StructureExtension) -> ObjectWithMaybeId
Converts to this type from the input type.
source§impl From<StructureExtractor> for ObjectWithMaybeId
 
impl From<StructureExtractor> for ObjectWithMaybeId
source§fn from(v: StructureExtractor) -> ObjectWithMaybeId
 
fn from(v: StructureExtractor) -> ObjectWithMaybeId
Converts to this type from the input type.
source§impl From<StructureFactory> for ObjectWithMaybeId
 
impl From<StructureFactory> for ObjectWithMaybeId
source§fn from(v: StructureFactory) -> ObjectWithMaybeId
 
fn from(v: StructureFactory) -> ObjectWithMaybeId
Converts to this type from the input type.
source§impl From<StructureInvaderCore> for ObjectWithMaybeId
 
impl From<StructureInvaderCore> for ObjectWithMaybeId
source§fn from(v: StructureInvaderCore) -> ObjectWithMaybeId
 
fn from(v: StructureInvaderCore) -> ObjectWithMaybeId
Converts to this type from the input type.
source§impl From<StructureKeeperLair> for ObjectWithMaybeId
 
impl From<StructureKeeperLair> for ObjectWithMaybeId
source§fn from(v: StructureKeeperLair) -> ObjectWithMaybeId
 
fn from(v: StructureKeeperLair) -> ObjectWithMaybeId
Converts to this type from the input type.
source§impl From<StructureLab> for ObjectWithMaybeId
 
impl From<StructureLab> for ObjectWithMaybeId
source§fn from(v: StructureLab) -> ObjectWithMaybeId
 
fn from(v: StructureLab) -> ObjectWithMaybeId
Converts to this type from the input type.
source§impl From<StructureLink> for ObjectWithMaybeId
 
impl From<StructureLink> for ObjectWithMaybeId
source§fn from(v: StructureLink) -> ObjectWithMaybeId
 
fn from(v: StructureLink) -> ObjectWithMaybeId
Converts to this type from the input type.
source§impl From<StructureNuker> for ObjectWithMaybeId
 
impl From<StructureNuker> for ObjectWithMaybeId
source§fn from(v: StructureNuker) -> ObjectWithMaybeId
 
fn from(v: StructureNuker) -> ObjectWithMaybeId
Converts to this type from the input type.
source§impl From<StructureObserver> for ObjectWithMaybeId
 
impl From<StructureObserver> for ObjectWithMaybeId
source§fn from(v: StructureObserver) -> ObjectWithMaybeId
 
fn from(v: StructureObserver) -> ObjectWithMaybeId
Converts to this type from the input type.
source§impl From<StructurePortal> for ObjectWithMaybeId
 
impl From<StructurePortal> for ObjectWithMaybeId
source§fn from(v: StructurePortal) -> ObjectWithMaybeId
 
fn from(v: StructurePortal) -> ObjectWithMaybeId
Converts to this type from the input type.
source§impl From<StructurePowerBank> for ObjectWithMaybeId
 
impl From<StructurePowerBank> for ObjectWithMaybeId
source§fn from(v: StructurePowerBank) -> ObjectWithMaybeId
 
fn from(v: StructurePowerBank) -> ObjectWithMaybeId
Converts to this type from the input type.
source§impl From<StructurePowerSpawn> for ObjectWithMaybeId
 
impl From<StructurePowerSpawn> for ObjectWithMaybeId
source§fn from(v: StructurePowerSpawn) -> ObjectWithMaybeId
 
fn from(v: StructurePowerSpawn) -> ObjectWithMaybeId
Converts to this type from the input type.
source§impl From<StructureRampart> for ObjectWithMaybeId
 
impl From<StructureRampart> for ObjectWithMaybeId
source§fn from(v: StructureRampart) -> ObjectWithMaybeId
 
fn from(v: StructureRampart) -> ObjectWithMaybeId
Converts to this type from the input type.
source§impl From<StructureRoad> for ObjectWithMaybeId
 
impl From<StructureRoad> for ObjectWithMaybeId
source§fn from(v: StructureRoad) -> ObjectWithMaybeId
 
fn from(v: StructureRoad) -> ObjectWithMaybeId
Converts to this type from the input type.
source§impl From<StructureSpawn> for ObjectWithMaybeId
 
impl From<StructureSpawn> for ObjectWithMaybeId
source§fn from(v: StructureSpawn) -> ObjectWithMaybeId
 
fn from(v: StructureSpawn) -> ObjectWithMaybeId
Converts to this type from the input type.
source§impl From<StructureStorage> for ObjectWithMaybeId
 
impl From<StructureStorage> for ObjectWithMaybeId
source§fn from(v: StructureStorage) -> ObjectWithMaybeId
 
fn from(v: StructureStorage) -> ObjectWithMaybeId
Converts to this type from the input type.
source§impl From<StructureTerminal> for ObjectWithMaybeId
 
impl From<StructureTerminal> for ObjectWithMaybeId
source§fn from(v: StructureTerminal) -> ObjectWithMaybeId
 
fn from(v: StructureTerminal) -> ObjectWithMaybeId
Converts to this type from the input type.
source§impl From<StructureTower> for ObjectWithMaybeId
 
impl From<StructureTower> for ObjectWithMaybeId
source§fn from(v: StructureTower) -> ObjectWithMaybeId
 
fn from(v: StructureTower) -> ObjectWithMaybeId
Converts to this type from the input type.
source§impl From<StructureWall> for ObjectWithMaybeId
 
impl From<StructureWall> for ObjectWithMaybeId
source§fn from(v: StructureWall) -> ObjectWithMaybeId
 
fn from(v: StructureWall) -> ObjectWithMaybeId
Converts to this type from the input type.
source§impl From<SymbolContainer> for ObjectWithMaybeId
Available on crate feature symbols only. 
impl From<SymbolContainer> for ObjectWithMaybeId
Available on crate feature 
symbols only.source§fn from(v: SymbolContainer) -> ObjectWithMaybeId
 
fn from(v: SymbolContainer) -> ObjectWithMaybeId
Converts to this type from the input type.
source§impl From<SymbolDecoder> for ObjectWithMaybeId
Available on crate feature symbols only. 
impl From<SymbolDecoder> for ObjectWithMaybeId
Available on crate feature 
symbols only.source§fn from(v: SymbolDecoder) -> ObjectWithMaybeId
 
fn from(v: SymbolDecoder) -> ObjectWithMaybeId
Converts to this type from the input type.
source§impl From<Tombstone> for ObjectWithMaybeId
 
impl From<Tombstone> for ObjectWithMaybeId
source§fn from(v: Tombstone) -> ObjectWithMaybeId
 
fn from(v: Tombstone) -> ObjectWithMaybeId
Converts to this type from the input type.
source§impl MaybeHasId for ObjectWithMaybeId
 
impl MaybeHasId for ObjectWithMaybeId
source§fn try_raw_id(&self) -> Option<RawObjectId>
 
fn try_raw_id(&self) -> Option<RawObjectId>
Object ID of the object, which can be used to efficiently fetch a
fresh reference to the object on subsequent ticks, or None if the
object doesn’t currently have an id.
source§impl TryInto<ConstructionSite> for ObjectWithMaybeId
 
impl TryInto<ConstructionSite> for ObjectWithMaybeId
source§impl TryInto<Creep> for ObjectWithMaybeId
 
impl TryInto<Creep> for ObjectWithMaybeId
source§impl TryInto<Deposit> for ObjectWithMaybeId
 
impl TryInto<Deposit> for ObjectWithMaybeId
source§impl TryInto<Mineral> for ObjectWithMaybeId
 
impl TryInto<Mineral> for ObjectWithMaybeId
source§impl TryInto<Nuke> for ObjectWithMaybeId
 
impl TryInto<Nuke> for ObjectWithMaybeId
source§impl TryInto<PowerCreep> for ObjectWithMaybeId
 
impl TryInto<PowerCreep> for ObjectWithMaybeId
source§impl TryInto<Resource> for ObjectWithMaybeId
 
impl TryInto<Resource> for ObjectWithMaybeId
source§impl TryInto<Ruin> for ObjectWithMaybeId
 
impl TryInto<Ruin> for ObjectWithMaybeId
source§impl TryInto<ScoreCollector> for ObjectWithMaybeId
Available on crate feature score only. 
impl TryInto<ScoreCollector> for ObjectWithMaybeId
Available on crate feature 
score only.source§impl TryInto<ScoreContainer> for ObjectWithMaybeId
Available on crate feature score only. 
impl TryInto<ScoreContainer> for ObjectWithMaybeId
Available on crate feature 
score only.source§impl TryInto<Source> for ObjectWithMaybeId
 
impl TryInto<Source> for ObjectWithMaybeId
source§impl TryInto<StructureFactory> for ObjectWithMaybeId
 
impl TryInto<StructureFactory> for ObjectWithMaybeId
source§impl TryInto<StructureLab> for ObjectWithMaybeId
 
impl TryInto<StructureLab> for ObjectWithMaybeId
source§impl TryInto<StructureLink> for ObjectWithMaybeId
 
impl TryInto<StructureLink> for ObjectWithMaybeId
source§impl TryInto<StructureNuker> for ObjectWithMaybeId
 
impl TryInto<StructureNuker> for ObjectWithMaybeId
source§impl TryInto<StructureObserver> for ObjectWithMaybeId
 
impl TryInto<StructureObserver> for ObjectWithMaybeId
source§impl TryInto<StructurePortal> for ObjectWithMaybeId
 
impl TryInto<StructurePortal> for ObjectWithMaybeId
source§impl TryInto<StructureRampart> for ObjectWithMaybeId
 
impl TryInto<StructureRampart> for ObjectWithMaybeId
source§impl TryInto<StructureRoad> for ObjectWithMaybeId
 
impl TryInto<StructureRoad> for ObjectWithMaybeId
source§impl TryInto<StructureSpawn> for ObjectWithMaybeId
 
impl TryInto<StructureSpawn> for ObjectWithMaybeId
source§impl TryInto<StructureStorage> for ObjectWithMaybeId
 
impl TryInto<StructureStorage> for ObjectWithMaybeId
source§impl TryInto<StructureTerminal> for ObjectWithMaybeId
 
impl TryInto<StructureTerminal> for ObjectWithMaybeId
source§impl TryInto<StructureTower> for ObjectWithMaybeId
 
impl TryInto<StructureTower> for ObjectWithMaybeId
source§impl TryInto<StructureWall> for ObjectWithMaybeId
 
impl TryInto<StructureWall> for ObjectWithMaybeId
source§impl TryInto<SymbolContainer> for ObjectWithMaybeId
Available on crate feature symbols only. 
impl TryInto<SymbolContainer> for ObjectWithMaybeId
Available on crate feature 
symbols only.source§impl TryInto<SymbolDecoder> for ObjectWithMaybeId
Available on crate feature symbols only. 
impl TryInto<SymbolDecoder> for ObjectWithMaybeId
Available on crate feature 
symbols only.Auto Trait Implementations§
impl RefUnwindSafe for ObjectWithMaybeId
impl !Send for ObjectWithMaybeId
impl !Sync for ObjectWithMaybeId
impl Unpin for ObjectWithMaybeId
impl UnwindSafe for ObjectWithMaybeId
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