pub enum ObjectWithPosition {
Show 37 variants ConstructionSite(ConstructionSite), Creep(Creep), Deposit(Deposit), Flag(Flag), Mineral(Mineral), Nuke(Nuke), PowerCreep(PowerCreep), Resource(Resource), RoomPosition(RoomPosition), 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)

§

Flag(Flag)

§

Mineral(Mineral)

§

Nuke(Nuke)

§

PowerCreep(PowerCreep)

§

Resource(Resource)

§

RoomPosition(RoomPosition)

§

Ruin(Ruin)

§

ScoreCollector(ScoreCollector)

Available on crate feature seasonal-season-1 only.
§

ScoreContainer(ScoreContainer)

Available on crate feature seasonal-season-1 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 seasonal-season-2 only.
§

SymbolDecoder(SymbolDecoder)

Available on crate feature seasonal-season-2 only.
§

Tombstone(Tombstone)

Trait Implementations§

source§

impl From<ConstructionSite> for ObjectWithPosition

source§

fn from(v: ConstructionSite) -> ObjectWithPosition

Converts to this type from the input type.
source§

impl From<Creep> for ObjectWithPosition

source§

fn from(v: Creep) -> ObjectWithPosition

Converts to this type from the input type.
source§

impl From<Deposit> for ObjectWithPosition

source§

fn from(v: Deposit) -> ObjectWithPosition

Converts to this type from the input type.
source§

impl From<Flag> for ObjectWithPosition

source§

fn from(v: Flag) -> ObjectWithPosition

Converts to this type from the input type.
source§

impl From<Mineral> for ObjectWithPosition

source§

fn from(v: Mineral) -> ObjectWithPosition

Converts to this type from the input type.
source§

impl From<Nuke> for ObjectWithPosition

source§

fn from(v: Nuke) -> ObjectWithPosition

Converts to this type from the input type.
source§

impl From<PowerCreep> for ObjectWithPosition

source§

fn from(v: PowerCreep) -> ObjectWithPosition

Converts to this type from the input type.
source§

impl From<Resource> for ObjectWithPosition

source§

fn from(v: Resource) -> ObjectWithPosition

Converts to this type from the input type.
source§

impl From<RoomPosition> for ObjectWithPosition

source§

fn from(v: RoomPosition) -> ObjectWithPosition

Converts to this type from the input type.
source§

impl From<Ruin> for ObjectWithPosition

source§

fn from(v: Ruin) -> ObjectWithPosition

Converts to this type from the input type.
source§

impl From<ScoreCollector> for ObjectWithPosition

Available on crate feature seasonal-season-1 only.
source§

fn from(v: ScoreCollector) -> ObjectWithPosition

Converts to this type from the input type.
source§

impl From<ScoreContainer> for ObjectWithPosition

Available on crate feature seasonal-season-1 only.
source§

fn from(v: ScoreContainer) -> ObjectWithPosition

Converts to this type from the input type.
source§

impl From<Source> for ObjectWithPosition

source§

fn from(v: Source) -> ObjectWithPosition

Converts to this type from the input type.
source§

impl From<StructureContainer> for ObjectWithPosition

source§

fn from(v: StructureContainer) -> ObjectWithPosition

Converts to this type from the input type.
source§

impl From<StructureController> for ObjectWithPosition

source§

fn from(v: StructureController) -> ObjectWithPosition

Converts to this type from the input type.
source§

impl From<StructureExtension> for ObjectWithPosition

source§

fn from(v: StructureExtension) -> ObjectWithPosition

Converts to this type from the input type.
source§

impl From<StructureExtractor> for ObjectWithPosition

source§

fn from(v: StructureExtractor) -> ObjectWithPosition

Converts to this type from the input type.
source§

impl From<StructureFactory> for ObjectWithPosition

source§

fn from(v: StructureFactory) -> ObjectWithPosition

Converts to this type from the input type.
source§

impl From<StructureInvaderCore> for ObjectWithPosition

source§

fn from(v: StructureInvaderCore) -> ObjectWithPosition

Converts to this type from the input type.
source§

impl From<StructureKeeperLair> for ObjectWithPosition

source§

fn from(v: StructureKeeperLair) -> ObjectWithPosition

Converts to this type from the input type.
source§

impl From<StructureLab> for ObjectWithPosition

source§

fn from(v: StructureLab) -> ObjectWithPosition

Converts to this type from the input type.
source§

impl From<StructureLink> for ObjectWithPosition

source§

fn from(v: StructureLink) -> ObjectWithPosition

Converts to this type from the input type.
source§

impl From<StructureNuker> for ObjectWithPosition

source§

fn from(v: StructureNuker) -> ObjectWithPosition

Converts to this type from the input type.
source§

impl From<StructureObserver> for ObjectWithPosition

source§

fn from(v: StructureObserver) -> ObjectWithPosition

Converts to this type from the input type.
source§

impl From<StructurePortal> for ObjectWithPosition

source§

fn from(v: StructurePortal) -> ObjectWithPosition

Converts to this type from the input type.
source§

impl From<StructurePowerBank> for ObjectWithPosition

source§

fn from(v: StructurePowerBank) -> ObjectWithPosition

Converts to this type from the input type.
source§

impl From<StructurePowerSpawn> for ObjectWithPosition

source§

fn from(v: StructurePowerSpawn) -> ObjectWithPosition

Converts to this type from the input type.
source§

impl From<StructureRampart> for ObjectWithPosition

source§

fn from(v: StructureRampart) -> ObjectWithPosition

Converts to this type from the input type.
source§

impl From<StructureRoad> for ObjectWithPosition

source§

fn from(v: StructureRoad) -> ObjectWithPosition

Converts to this type from the input type.
source§

impl From<StructureSpawn> for ObjectWithPosition

source§

fn from(v: StructureSpawn) -> ObjectWithPosition

Converts to this type from the input type.
source§

impl From<StructureStorage> for ObjectWithPosition

source§

fn from(v: StructureStorage) -> ObjectWithPosition

Converts to this type from the input type.
source§

impl From<StructureTerminal> for ObjectWithPosition

source§

fn from(v: StructureTerminal) -> ObjectWithPosition

Converts to this type from the input type.
source§

impl From<StructureTower> for ObjectWithPosition

source§

fn from(v: StructureTower) -> ObjectWithPosition

Converts to this type from the input type.
source§

impl From<StructureWall> for ObjectWithPosition

source§

fn from(v: StructureWall) -> ObjectWithPosition

Converts to this type from the input type.
source§

impl From<SymbolContainer> for ObjectWithPosition

Available on crate feature seasonal-season-2 only.
source§

fn from(v: SymbolContainer) -> ObjectWithPosition

Converts to this type from the input type.
source§

impl From<SymbolDecoder> for ObjectWithPosition

Available on crate feature seasonal-season-2 only.
source§

fn from(v: SymbolDecoder) -> ObjectWithPosition

Converts to this type from the input type.
source§

impl From<Tombstone> for ObjectWithPosition

source§

fn from(v: Tombstone) -> ObjectWithPosition

Converts to this type from the input type.
source§

impl HasPosition for ObjectWithPosition

source§

fn pos(&self) -> Position

Position of the object.

source§

impl TryInto<ConstructionSite> for ObjectWithPosition

§

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 ObjectWithPosition

§

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 ObjectWithPosition

§

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<Flag> for ObjectWithPosition

§

type Error = &'static str

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

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

Performs the conversion.
source§

impl TryInto<Mineral> for ObjectWithPosition

§

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 ObjectWithPosition

§

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 ObjectWithPosition

§

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 ObjectWithPosition

§

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<RoomPosition> for ObjectWithPosition

§

type Error = &'static str

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

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

Performs the conversion.
source§

impl TryInto<Ruin> for ObjectWithPosition

§

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 ObjectWithPosition

Available on crate feature seasonal-season-1 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 ObjectWithPosition

Available on crate feature seasonal-season-1 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 ObjectWithPosition

§

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 ObjectWithPosition

§

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 ObjectWithPosition

§

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 ObjectWithPosition

§

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 ObjectWithPosition

§

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 ObjectWithPosition

§

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 ObjectWithPosition

§

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 ObjectWithPosition

§

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 ObjectWithPosition

§

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 ObjectWithPosition

§

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 ObjectWithPosition

§

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 ObjectWithPosition

§

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 ObjectWithPosition

§

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 ObjectWithPosition

§

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 ObjectWithPosition

§

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 ObjectWithPosition

§

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 ObjectWithPosition

§

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 ObjectWithPosition

§

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 ObjectWithPosition

§

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 ObjectWithPosition

§

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 ObjectWithPosition

§

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 ObjectWithPosition

§

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 ObjectWithPosition

Available on crate feature seasonal-season-2 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 ObjectWithPosition

Available on crate feature seasonal-season-2 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 ObjectWithPosition

§

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, 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.