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)

§

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

source§

fn from(v: ConstructionSite) -> ObjectWithMaybeId

Converts to this type from the input type.
source§

impl From<Creep> for ObjectWithMaybeId

source§

fn from(v: Creep) -> ObjectWithMaybeId

Converts to this type from the input type.
source§

impl From<Deposit> for ObjectWithMaybeId

source§

fn from(v: Deposit) -> ObjectWithMaybeId

Converts to this type from the input type.
source§

impl From<Mineral> for ObjectWithMaybeId

source§

fn from(v: Mineral) -> ObjectWithMaybeId

Converts to this type from the input type.
source§

impl From<Nuke> for ObjectWithMaybeId

source§

fn from(v: Nuke) -> ObjectWithMaybeId

Converts to this type from the input type.
source§

impl From<PowerCreep> for ObjectWithMaybeId

source§

fn from(v: PowerCreep) -> ObjectWithMaybeId

Converts to this type from the input type.
source§

impl From<Resource> for ObjectWithMaybeId

source§

fn from(v: Resource) -> ObjectWithMaybeId

Converts to this type from the input type.
source§

impl From<Ruin> for ObjectWithMaybeId

source§

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.
source§

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.
source§

fn from(v: ScoreContainer) -> ObjectWithMaybeId

Converts to this type from the input type.
source§

impl From<Source> for ObjectWithMaybeId

source§

fn from(v: Source) -> ObjectWithMaybeId

Converts to this type from the input type.
source§

impl From<StructureContainer> for ObjectWithMaybeId

source§

fn from(v: StructureContainer) -> ObjectWithMaybeId

Converts to this type from the input type.
source§

impl From<StructureController> for ObjectWithMaybeId

source§

fn from(v: StructureController) -> ObjectWithMaybeId

Converts to this type from the input type.
source§

impl From<StructureExtension> for ObjectWithMaybeId

source§

fn from(v: StructureExtension) -> ObjectWithMaybeId

Converts to this type from the input type.
source§

impl From<StructureExtractor> for ObjectWithMaybeId

source§

fn from(v: StructureExtractor) -> ObjectWithMaybeId

Converts to this type from the input type.
source§

impl From<StructureFactory> for ObjectWithMaybeId

source§

fn from(v: StructureFactory) -> ObjectWithMaybeId

Converts to this type from the input type.
source§

impl From<StructureInvaderCore> for ObjectWithMaybeId

source§

fn from(v: StructureInvaderCore) -> ObjectWithMaybeId

Converts to this type from the input type.
source§

impl From<StructureKeeperLair> for ObjectWithMaybeId

source§

fn from(v: StructureKeeperLair) -> ObjectWithMaybeId

Converts to this type from the input type.
source§

impl From<StructureLab> for ObjectWithMaybeId

source§

fn from(v: StructureLab) -> ObjectWithMaybeId

Converts to this type from the input type.
source§

impl From<StructureLink> for ObjectWithMaybeId

source§

fn from(v: StructureLink) -> ObjectWithMaybeId

Converts to this type from the input type.
source§

impl From<StructureNuker> for ObjectWithMaybeId

source§

fn from(v: StructureNuker) -> ObjectWithMaybeId

Converts to this type from the input type.
source§

impl From<StructureObserver> for ObjectWithMaybeId

source§

fn from(v: StructureObserver) -> ObjectWithMaybeId

Converts to this type from the input type.
source§

impl From<StructurePortal> for ObjectWithMaybeId

source§

fn from(v: StructurePortal) -> ObjectWithMaybeId

Converts to this type from the input type.
source§

impl From<StructurePowerBank> for ObjectWithMaybeId

source§

fn from(v: StructurePowerBank) -> ObjectWithMaybeId

Converts to this type from the input type.
source§

impl From<StructurePowerSpawn> for ObjectWithMaybeId

source§

fn from(v: StructurePowerSpawn) -> ObjectWithMaybeId

Converts to this type from the input type.
source§

impl From<StructureRampart> for ObjectWithMaybeId

source§

fn from(v: StructureRampart) -> ObjectWithMaybeId

Converts to this type from the input type.
source§

impl From<StructureRoad> for ObjectWithMaybeId

source§

fn from(v: StructureRoad) -> ObjectWithMaybeId

Converts to this type from the input type.
source§

impl From<StructureSpawn> for ObjectWithMaybeId

source§

fn from(v: StructureSpawn) -> ObjectWithMaybeId

Converts to this type from the input type.
source§

impl From<StructureStorage> for ObjectWithMaybeId

source§

fn from(v: StructureStorage) -> ObjectWithMaybeId

Converts to this type from the input type.
source§

impl From<StructureTerminal> for ObjectWithMaybeId

source§

fn from(v: StructureTerminal) -> ObjectWithMaybeId

Converts to this type from the input type.
source§

impl From<StructureTower> for ObjectWithMaybeId

source§

fn from(v: StructureTower) -> ObjectWithMaybeId

Converts to this type from the input type.
source§

impl From<StructureWall> for ObjectWithMaybeId

source§

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.
source§

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.
source§

fn from(v: SymbolDecoder) -> ObjectWithMaybeId

Converts to this type from the input type.
source§

impl From<Tombstone> for ObjectWithMaybeId

source§

fn from(v: Tombstone) -> ObjectWithMaybeId

Converts to this type from the input type.
source§

impl MaybeHasId for ObjectWithMaybeId

source§

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

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_into( self ) -> Result<ConstructionSite, <Self as TryInto<ConstructionSite>>::Error>

Performs the conversion.
source§

impl TryInto<Creep> for ObjectWithMaybeId

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<Creep, <Self as TryInto<Creep>>::Error>

Performs the conversion.
source§

impl TryInto<Deposit> for ObjectWithMaybeId

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<Deposit, <Self as TryInto<Deposit>>::Error>

Performs the conversion.
source§

impl TryInto<Mineral> for ObjectWithMaybeId

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<Mineral, <Self as TryInto<Mineral>>::Error>

Performs the conversion.
source§

impl TryInto<Nuke> for ObjectWithMaybeId

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<Nuke, <Self as TryInto<Nuke>>::Error>

Performs the conversion.
source§

impl TryInto<PowerCreep> for ObjectWithMaybeId

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<PowerCreep, <Self as TryInto<PowerCreep>>::Error>

Performs the conversion.
source§

impl TryInto<Resource> for ObjectWithMaybeId

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<Resource, <Self as TryInto<Resource>>::Error>

Performs the conversion.
source§

impl TryInto<Ruin> for ObjectWithMaybeId

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<Ruin, <Self as TryInto<Ruin>>::Error>

Performs the conversion.
source§

impl TryInto<ScoreCollector> for ObjectWithMaybeId

Available on crate feature score only.
§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_into( self ) -> Result<ScoreCollector, <Self as TryInto<ScoreCollector>>::Error>

Performs the conversion.
source§

impl TryInto<ScoreContainer> for ObjectWithMaybeId

Available on crate feature score only.
§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_into( self ) -> Result<ScoreContainer, <Self as TryInto<ScoreContainer>>::Error>

Performs the conversion.
source§

impl TryInto<Source> for ObjectWithMaybeId

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<Source, <Self as TryInto<Source>>::Error>

Performs the conversion.
source§

impl TryInto<StructureContainer> for ObjectWithMaybeId

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_into( self ) -> Result<StructureContainer, <Self as TryInto<StructureContainer>>::Error>

Performs the conversion.
source§

impl TryInto<StructureController> for ObjectWithMaybeId

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_into( self ) -> Result<StructureController, <Self as TryInto<StructureController>>::Error>

Performs the conversion.
source§

impl TryInto<StructureExtension> for ObjectWithMaybeId

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_into( self ) -> Result<StructureExtension, <Self as TryInto<StructureExtension>>::Error>

Performs the conversion.
source§

impl TryInto<StructureExtractor> for ObjectWithMaybeId

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_into( self ) -> Result<StructureExtractor, <Self as TryInto<StructureExtractor>>::Error>

Performs the conversion.
source§

impl TryInto<StructureFactory> for ObjectWithMaybeId

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_into( self ) -> Result<StructureFactory, <Self as TryInto<StructureFactory>>::Error>

Performs the conversion.
source§

impl TryInto<StructureInvaderCore> for ObjectWithMaybeId

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_into( self ) -> Result<StructureInvaderCore, <Self as TryInto<StructureInvaderCore>>::Error>

Performs the conversion.
source§

impl TryInto<StructureKeeperLair> for ObjectWithMaybeId

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_into( self ) -> Result<StructureKeeperLair, <Self as TryInto<StructureKeeperLair>>::Error>

Performs the conversion.
source§

impl TryInto<StructureLab> for ObjectWithMaybeId

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_into( self ) -> Result<StructureLab, <Self as TryInto<StructureLab>>::Error>

Performs the conversion.
source§

impl TryInto<StructureLink> for ObjectWithMaybeId

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_into( self ) -> Result<StructureLink, <Self as TryInto<StructureLink>>::Error>

Performs the conversion.
source§

impl TryInto<StructureNuker> for ObjectWithMaybeId

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_into( self ) -> Result<StructureNuker, <Self as TryInto<StructureNuker>>::Error>

Performs the conversion.
source§

impl TryInto<StructureObserver> for ObjectWithMaybeId

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_into( self ) -> Result<StructureObserver, <Self as TryInto<StructureObserver>>::Error>

Performs the conversion.
source§

impl TryInto<StructurePortal> for ObjectWithMaybeId

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_into( self ) -> Result<StructurePortal, <Self as TryInto<StructurePortal>>::Error>

Performs the conversion.
source§

impl TryInto<StructurePowerBank> for ObjectWithMaybeId

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_into( self ) -> Result<StructurePowerBank, <Self as TryInto<StructurePowerBank>>::Error>

Performs the conversion.
source§

impl TryInto<StructurePowerSpawn> for ObjectWithMaybeId

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_into( self ) -> Result<StructurePowerSpawn, <Self as TryInto<StructurePowerSpawn>>::Error>

Performs the conversion.
source§

impl TryInto<StructureRampart> for ObjectWithMaybeId

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_into( self ) -> Result<StructureRampart, <Self as TryInto<StructureRampart>>::Error>

Performs the conversion.
source§

impl TryInto<StructureRoad> for ObjectWithMaybeId

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_into( self ) -> Result<StructureRoad, <Self as TryInto<StructureRoad>>::Error>

Performs the conversion.
source§

impl TryInto<StructureSpawn> for ObjectWithMaybeId

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_into( self ) -> Result<StructureSpawn, <Self as TryInto<StructureSpawn>>::Error>

Performs the conversion.
source§

impl TryInto<StructureStorage> for ObjectWithMaybeId

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_into( self ) -> Result<StructureStorage, <Self as TryInto<StructureStorage>>::Error>

Performs the conversion.
source§

impl TryInto<StructureTerminal> for ObjectWithMaybeId

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_into( self ) -> Result<StructureTerminal, <Self as TryInto<StructureTerminal>>::Error>

Performs the conversion.
source§

impl TryInto<StructureTower> for ObjectWithMaybeId

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_into( self ) -> Result<StructureTower, <Self as TryInto<StructureTower>>::Error>

Performs the conversion.
source§

impl TryInto<StructureWall> for ObjectWithMaybeId

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_into( self ) -> Result<StructureWall, <Self as TryInto<StructureWall>>::Error>

Performs the conversion.
source§

impl TryInto<SymbolContainer> for ObjectWithMaybeId

Available on crate feature symbols only.
§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_into( self ) -> Result<SymbolContainer, <Self as TryInto<SymbolContainer>>::Error>

Performs the conversion.
source§

impl TryInto<SymbolDecoder> for ObjectWithMaybeId

Available on crate feature symbols only.
§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_into( self ) -> Result<SymbolDecoder, <Self as TryInto<SymbolDecoder>>::Error>

Performs the conversion.
source§

impl TryInto<Tombstone> for ObjectWithMaybeId

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<Tombstone, <Self as TryInto<Tombstone>>::Error>

Performs the conversion.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> MaybeHasTypedId<T> for T
where T: MaybeHasId,

source§

fn try_id(&self) -> Option<ObjectId<T>>

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<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.