Enum screeps::enums::ObjectWithPosition  
source · 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 
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 ObjectWithPosition
 
impl From<ConstructionSite> for ObjectWithPosition
source§fn from(v: ConstructionSite) -> ObjectWithPosition
 
fn from(v: ConstructionSite) -> ObjectWithPosition
Converts to this type from the input type.
source§impl From<Creep> for ObjectWithPosition
 
impl From<Creep> for ObjectWithPosition
source§fn from(v: Creep) -> ObjectWithPosition
 
fn from(v: Creep) -> ObjectWithPosition
Converts to this type from the input type.
source§impl From<Deposit> for ObjectWithPosition
 
impl From<Deposit> for ObjectWithPosition
source§fn from(v: Deposit) -> ObjectWithPosition
 
fn from(v: Deposit) -> ObjectWithPosition
Converts to this type from the input type.
source§impl From<Flag> for ObjectWithPosition
 
impl From<Flag> for ObjectWithPosition
source§fn from(v: Flag) -> ObjectWithPosition
 
fn from(v: Flag) -> ObjectWithPosition
Converts to this type from the input type.
source§impl From<Mineral> for ObjectWithPosition
 
impl From<Mineral> for ObjectWithPosition
source§fn from(v: Mineral) -> ObjectWithPosition
 
fn from(v: Mineral) -> ObjectWithPosition
Converts to this type from the input type.
source§impl From<Nuke> for ObjectWithPosition
 
impl From<Nuke> for ObjectWithPosition
source§fn from(v: Nuke) -> ObjectWithPosition
 
fn from(v: Nuke) -> ObjectWithPosition
Converts to this type from the input type.
source§impl From<PowerCreep> for ObjectWithPosition
 
impl From<PowerCreep> for ObjectWithPosition
source§fn from(v: PowerCreep) -> ObjectWithPosition
 
fn from(v: PowerCreep) -> ObjectWithPosition
Converts to this type from the input type.
source§impl From<Resource> for ObjectWithPosition
 
impl From<Resource> for ObjectWithPosition
source§fn from(v: Resource) -> ObjectWithPosition
 
fn from(v: Resource) -> ObjectWithPosition
Converts to this type from the input type.
source§impl From<RoomPosition> for ObjectWithPosition
 
impl From<RoomPosition> for ObjectWithPosition
source§fn from(v: RoomPosition) -> ObjectWithPosition
 
fn from(v: RoomPosition) -> ObjectWithPosition
Converts to this type from the input type.
source§impl From<Ruin> for ObjectWithPosition
 
impl From<Ruin> for ObjectWithPosition
source§fn from(v: Ruin) -> ObjectWithPosition
 
fn from(v: Ruin) -> ObjectWithPosition
Converts to this type from the input type.
source§impl From<ScoreCollector> for ObjectWithPosition
Available on crate feature score only. 
impl From<ScoreCollector> for ObjectWithPosition
Available on crate feature 
score only.source§fn from(v: ScoreCollector) -> ObjectWithPosition
 
fn from(v: ScoreCollector) -> ObjectWithPosition
Converts to this type from the input type.
source§impl From<ScoreContainer> for ObjectWithPosition
Available on crate feature score only. 
impl From<ScoreContainer> for ObjectWithPosition
Available on crate feature 
score only.source§fn from(v: ScoreContainer) -> ObjectWithPosition
 
fn from(v: ScoreContainer) -> ObjectWithPosition
Converts to this type from the input type.
source§impl From<Source> for ObjectWithPosition
 
impl From<Source> for ObjectWithPosition
source§fn from(v: Source) -> ObjectWithPosition
 
fn from(v: Source) -> ObjectWithPosition
Converts to this type from the input type.
source§impl From<StructureContainer> for ObjectWithPosition
 
impl From<StructureContainer> for ObjectWithPosition
source§fn from(v: StructureContainer) -> ObjectWithPosition
 
fn from(v: StructureContainer) -> ObjectWithPosition
Converts to this type from the input type.
source§impl From<StructureController> for ObjectWithPosition
 
impl From<StructureController> for ObjectWithPosition
source§fn from(v: StructureController) -> ObjectWithPosition
 
fn from(v: StructureController) -> ObjectWithPosition
Converts to this type from the input type.
source§impl From<StructureExtension> for ObjectWithPosition
 
impl From<StructureExtension> for ObjectWithPosition
source§fn from(v: StructureExtension) -> ObjectWithPosition
 
fn from(v: StructureExtension) -> ObjectWithPosition
Converts to this type from the input type.
source§impl From<StructureExtractor> for ObjectWithPosition
 
impl From<StructureExtractor> for ObjectWithPosition
source§fn from(v: StructureExtractor) -> ObjectWithPosition
 
fn from(v: StructureExtractor) -> ObjectWithPosition
Converts to this type from the input type.
source§impl From<StructureFactory> for ObjectWithPosition
 
impl From<StructureFactory> for ObjectWithPosition
source§fn from(v: StructureFactory) -> ObjectWithPosition
 
fn from(v: StructureFactory) -> ObjectWithPosition
Converts to this type from the input type.
source§impl From<StructureInvaderCore> for ObjectWithPosition
 
impl From<StructureInvaderCore> for ObjectWithPosition
source§fn from(v: StructureInvaderCore) -> ObjectWithPosition
 
fn from(v: StructureInvaderCore) -> ObjectWithPosition
Converts to this type from the input type.
source§impl From<StructureKeeperLair> for ObjectWithPosition
 
impl From<StructureKeeperLair> for ObjectWithPosition
source§fn from(v: StructureKeeperLair) -> ObjectWithPosition
 
fn from(v: StructureKeeperLair) -> ObjectWithPosition
Converts to this type from the input type.
source§impl From<StructureLab> for ObjectWithPosition
 
impl From<StructureLab> for ObjectWithPosition
source§fn from(v: StructureLab) -> ObjectWithPosition
 
fn from(v: StructureLab) -> ObjectWithPosition
Converts to this type from the input type.
source§impl From<StructureLink> for ObjectWithPosition
 
impl From<StructureLink> for ObjectWithPosition
source§fn from(v: StructureLink) -> ObjectWithPosition
 
fn from(v: StructureLink) -> ObjectWithPosition
Converts to this type from the input type.
source§impl From<StructureNuker> for ObjectWithPosition
 
impl From<StructureNuker> for ObjectWithPosition
source§fn from(v: StructureNuker) -> ObjectWithPosition
 
fn from(v: StructureNuker) -> ObjectWithPosition
Converts to this type from the input type.
source§impl From<StructureObserver> for ObjectWithPosition
 
impl From<StructureObserver> for ObjectWithPosition
source§fn from(v: StructureObserver) -> ObjectWithPosition
 
fn from(v: StructureObserver) -> ObjectWithPosition
Converts to this type from the input type.
source§impl From<StructurePortal> for ObjectWithPosition
 
impl From<StructurePortal> for ObjectWithPosition
source§fn from(v: StructurePortal) -> ObjectWithPosition
 
fn from(v: StructurePortal) -> ObjectWithPosition
Converts to this type from the input type.
source§impl From<StructurePowerBank> for ObjectWithPosition
 
impl From<StructurePowerBank> for ObjectWithPosition
source§fn from(v: StructurePowerBank) -> ObjectWithPosition
 
fn from(v: StructurePowerBank) -> ObjectWithPosition
Converts to this type from the input type.
source§impl From<StructurePowerSpawn> for ObjectWithPosition
 
impl From<StructurePowerSpawn> for ObjectWithPosition
source§fn from(v: StructurePowerSpawn) -> ObjectWithPosition
 
fn from(v: StructurePowerSpawn) -> ObjectWithPosition
Converts to this type from the input type.
source§impl From<StructureRampart> for ObjectWithPosition
 
impl From<StructureRampart> for ObjectWithPosition
source§fn from(v: StructureRampart) -> ObjectWithPosition
 
fn from(v: StructureRampart) -> ObjectWithPosition
Converts to this type from the input type.
source§impl From<StructureRoad> for ObjectWithPosition
 
impl From<StructureRoad> for ObjectWithPosition
source§fn from(v: StructureRoad) -> ObjectWithPosition
 
fn from(v: StructureRoad) -> ObjectWithPosition
Converts to this type from the input type.
source§impl From<StructureSpawn> for ObjectWithPosition
 
impl From<StructureSpawn> for ObjectWithPosition
source§fn from(v: StructureSpawn) -> ObjectWithPosition
 
fn from(v: StructureSpawn) -> ObjectWithPosition
Converts to this type from the input type.
source§impl From<StructureStorage> for ObjectWithPosition
 
impl From<StructureStorage> for ObjectWithPosition
source§fn from(v: StructureStorage) -> ObjectWithPosition
 
fn from(v: StructureStorage) -> ObjectWithPosition
Converts to this type from the input type.
source§impl From<StructureTerminal> for ObjectWithPosition
 
impl From<StructureTerminal> for ObjectWithPosition
source§fn from(v: StructureTerminal) -> ObjectWithPosition
 
fn from(v: StructureTerminal) -> ObjectWithPosition
Converts to this type from the input type.
source§impl From<StructureTower> for ObjectWithPosition
 
impl From<StructureTower> for ObjectWithPosition
source§fn from(v: StructureTower) -> ObjectWithPosition
 
fn from(v: StructureTower) -> ObjectWithPosition
Converts to this type from the input type.
source§impl From<StructureWall> for ObjectWithPosition
 
impl From<StructureWall> for ObjectWithPosition
source§fn from(v: StructureWall) -> ObjectWithPosition
 
fn from(v: StructureWall) -> ObjectWithPosition
Converts to this type from the input type.
source§impl From<SymbolContainer> for ObjectWithPosition
Available on crate feature symbols only. 
impl From<SymbolContainer> for ObjectWithPosition
Available on crate feature 
symbols only.source§fn from(v: SymbolContainer) -> ObjectWithPosition
 
fn from(v: SymbolContainer) -> ObjectWithPosition
Converts to this type from the input type.
source§impl From<SymbolDecoder> for ObjectWithPosition
Available on crate feature symbols only. 
impl From<SymbolDecoder> for ObjectWithPosition
Available on crate feature 
symbols only.source§fn from(v: SymbolDecoder) -> ObjectWithPosition
 
fn from(v: SymbolDecoder) -> ObjectWithPosition
Converts to this type from the input type.
source§impl From<Tombstone> for ObjectWithPosition
 
impl From<Tombstone> for ObjectWithPosition
source§fn from(v: Tombstone) -> ObjectWithPosition
 
fn from(v: Tombstone) -> ObjectWithPosition
Converts to this type from the input type.
source§impl HasPosition for ObjectWithPosition
 
impl HasPosition for ObjectWithPosition
source§impl TryInto<ConstructionSite> for ObjectWithPosition
 
impl TryInto<ConstructionSite> for ObjectWithPosition
source§impl TryInto<Creep> for ObjectWithPosition
 
impl TryInto<Creep> for ObjectWithPosition
source§impl TryInto<Deposit> for ObjectWithPosition
 
impl TryInto<Deposit> for ObjectWithPosition
source§impl TryInto<Flag> for ObjectWithPosition
 
impl TryInto<Flag> for ObjectWithPosition
source§impl TryInto<Mineral> for ObjectWithPosition
 
impl TryInto<Mineral> for ObjectWithPosition
source§impl TryInto<Nuke> for ObjectWithPosition
 
impl TryInto<Nuke> for ObjectWithPosition
source§impl TryInto<PowerCreep> for ObjectWithPosition
 
impl TryInto<PowerCreep> for ObjectWithPosition
source§impl TryInto<Resource> for ObjectWithPosition
 
impl TryInto<Resource> for ObjectWithPosition
source§impl TryInto<RoomPosition> for ObjectWithPosition
 
impl TryInto<RoomPosition> for ObjectWithPosition
source§impl TryInto<Ruin> for ObjectWithPosition
 
impl TryInto<Ruin> for ObjectWithPosition
source§impl TryInto<ScoreCollector> for ObjectWithPosition
Available on crate feature score only. 
impl TryInto<ScoreCollector> for ObjectWithPosition
Available on crate feature 
score only.source§impl TryInto<ScoreContainer> for ObjectWithPosition
Available on crate feature score only. 
impl TryInto<ScoreContainer> for ObjectWithPosition
Available on crate feature 
score only.source§impl TryInto<Source> for ObjectWithPosition
 
impl TryInto<Source> for ObjectWithPosition
source§impl TryInto<StructureFactory> for ObjectWithPosition
 
impl TryInto<StructureFactory> for ObjectWithPosition
source§impl TryInto<StructureLab> for ObjectWithPosition
 
impl TryInto<StructureLab> for ObjectWithPosition
source§impl TryInto<StructureLink> for ObjectWithPosition
 
impl TryInto<StructureLink> for ObjectWithPosition
source§impl TryInto<StructureNuker> for ObjectWithPosition
 
impl TryInto<StructureNuker> for ObjectWithPosition
source§impl TryInto<StructurePortal> for ObjectWithPosition
 
impl TryInto<StructurePortal> for ObjectWithPosition
source§impl TryInto<StructureRampart> for ObjectWithPosition
 
impl TryInto<StructureRampart> for ObjectWithPosition
source§impl TryInto<StructureRoad> for ObjectWithPosition
 
impl TryInto<StructureRoad> for ObjectWithPosition
source§impl TryInto<StructureSpawn> for ObjectWithPosition
 
impl TryInto<StructureSpawn> for ObjectWithPosition
source§impl TryInto<StructureStorage> for ObjectWithPosition
 
impl TryInto<StructureStorage> for ObjectWithPosition
source§impl TryInto<StructureTower> for ObjectWithPosition
 
impl TryInto<StructureTower> for ObjectWithPosition
source§impl TryInto<StructureWall> for ObjectWithPosition
 
impl TryInto<StructureWall> for ObjectWithPosition
source§impl TryInto<SymbolContainer> for ObjectWithPosition
Available on crate feature symbols only. 
impl TryInto<SymbolContainer> for ObjectWithPosition
Available on crate feature 
symbols only.source§impl TryInto<SymbolDecoder> for ObjectWithPosition
Available on crate feature symbols only. 
impl TryInto<SymbolDecoder> for ObjectWithPosition
Available on crate feature 
symbols only.Auto Trait Implementations§
impl RefUnwindSafe for ObjectWithPosition
impl !Send for ObjectWithPosition
impl !Sync for ObjectWithPosition
impl Unpin for ObjectWithPosition
impl UnwindSafe for ObjectWithPosition
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