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