Enum screeps::constants::find::RoomObject   
source · #[repr(i16)]pub enum RoomObject {
Show 28 variants
    Creeps,
    MyCreeps,
    HostileCreeps,
    SourcesActive,
    Sources,
    DroppedResources,
    Structures,
    MyStructures,
    HostileStructures,
    Flags,
    ConstructionSites,
    MySpawns,
    HostileSpawns,
    MyConstructionSites,
    HostileConstructionSites,
    Minerals,
    Nukes,
    Tombstones,
    PowerCreeps,
    MyPowerCreeps,
    HostilePowerCreeps,
    Deposits,
    Ruins,
    ScoreContainers,
    ScoreCollectors,
    SymbolContainers,
    SymbolDecoders,
    Reactors,
}Expand description
Useful for finding any RoomObject with
a dynamically-chosen find constant.
If you know ahead of time what constant you’ll use, then the all-upper-case constants in this module will be more helpful, and won’t require casting the result types.
Note: To avoid ambiguity with RoomObject, you should refer to this
enum as find::RoomObject rather than importing it directly.
Variants§
Creeps
MyCreeps
HostileCreeps
SourcesActive
Sources
DroppedResources
Structures
MyStructures
HostileStructures
Flags
ConstructionSites
MySpawns
HostileSpawns
MyConstructionSites
HostileConstructionSites
Minerals
Nukes
Tombstones
PowerCreeps
MyPowerCreeps
HostilePowerCreeps
Deposits
Ruins
ScoreContainers
Available on crate feature 
score only.ScoreCollectors
Available on crate feature 
score only.SymbolContainers
Available on crate feature 
symbols only.SymbolDecoders
Available on crate feature 
symbols only.Reactors
Available on crate feature 
thorium only.Trait Implementations§
source§impl Clone for RoomObject
 
impl Clone for RoomObject
source§fn clone(&self) -> RoomObject
 
fn clone(&self) -> RoomObject
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from 
source. Read moresource§impl Debug for RoomObject
 
impl Debug for RoomObject
source§impl FindConstant for RoomObject
 
impl FindConstant for RoomObject
source§impl Hash for RoomObject
 
impl Hash for RoomObject
source§impl PartialEq<RoomObject> for RoomObject
 
impl PartialEq<RoomObject> for RoomObject
source§fn eq(&self, other: &RoomObject) -> bool
 
fn eq(&self, other: &RoomObject) -> bool
This method tests for 
self and other values to be equal, and is used
by ==.impl Copy for RoomObject
impl Eq for RoomObject
impl StructuralEq for RoomObject
impl StructuralPartialEq for RoomObject
Auto Trait Implementations§
impl RefUnwindSafe for RoomObject
impl Send for RoomObject
impl Sync for RoomObject
impl Unpin for RoomObject
impl UnwindSafe for RoomObject
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