#[repr(u16)]pub enum Find {
Show 33 variants
ExitTop,
ExitRight,
ExitBottom,
ExitLeft,
Exit,
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
Translates FIND_* constants.
Variants§
ExitTop
Find all exit positions at the top of the room
ExitRight
ExitBottom
ExitLeft
Exit
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
Trait Implementations§
source§impl<'de> Deserialize<'de> for Find
impl<'de> Deserialize<'de> for Find
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<ExitDirection> for Find
impl From<ExitDirection> for Find
source§fn from(dir: ExitDirection) -> Self
fn from(dir: ExitDirection) -> Self
Converts to this type from the input type.
source§impl From<RoomObject> for Find
impl From<RoomObject> for Find
source§fn from(obj: RoomObject) -> Find
fn from(obj: RoomObject) -> Find
Converts to this type from the input type.
source§impl FromWasmAbi for Find
impl FromWasmAbi for Find
source§impl IntoWasmAbi for Find
impl IntoWasmAbi for Find
source§impl OptionFromWasmAbi for Find
impl OptionFromWasmAbi for Find
source§impl OptionIntoWasmAbi for Find
impl OptionIntoWasmAbi for Find
source§impl PartialEq<Find> for Find
impl PartialEq<Find> for Find
source§impl Sequence for Find
impl Sequence for Find
impl Copy for Find
impl Eq for Find
impl StructuralEq for Find
impl StructuralPartialEq for Find
Auto Trait Implementations§
impl RefUnwindSafe for Find
impl Send for Find
impl Sync for Find
impl Unpin for Find
impl UnwindSafe for Find
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
source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere T: IntoWasmAbi,
§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::Abisource§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi, except that it may throw and never
return in the case of Err.