Enum screeps::constants::FindObject
source · #[repr(i32)]
pub enum FindObject {
Show 18 variants
Creeps,
MyCreeps,
HostileCreeps,
SourcesActive,
Sources,
DroppedResources,
Structures,
MyStructures,
HostileStructures,
Flags,
ConstructionSites,
MySpawns,
HostileSpawns,
MyConstructionSites,
HostileConstructionSites,
Minerals,
Nukes,
Tombstones,
}Variants
Creeps
MyCreeps
HostileCreeps
SourcesActive
Sources
DroppedResources
Structures
MyStructures
HostileStructures
Flags
ConstructionSites
MySpawns
HostileSpawns
MyConstructionSites
HostileConstructionSites
Minerals
Nukes
Tombstones
Trait Implementations
sourceimpl Clone for FindObject
impl Clone for FindObject
sourcefn clone(&self) -> FindObject
fn clone(&self) -> FindObject
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for FindObject
impl Debug for FindObject
sourceimpl FindConstant for FindObject
impl FindConstant for FindObject
type Item = RoomObject
fn find_code(&self) -> i32
sourceimpl PartialEq<FindObject> for FindObject
impl PartialEq<FindObject> for FindObject
sourcefn eq(&self, other: &FindObject) -> bool
fn eq(&self, other: &FindObject) -> bool
impl Copy for FindObject
impl Eq for FindObject
impl StructuralEq for FindObject
impl StructuralPartialEq for FindObject
Auto Trait Implementations
impl RefUnwindSafe for FindObject
impl Send for FindObject
impl Sync for FindObject
impl Unpin for FindObject
impl UnwindSafe for FindObject
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T, U> IntoExpectedType<U> for Twhere
U: FromExpectedType<T>,
impl<T, U> IntoExpectedType<U> for Twhere
U: FromExpectedType<T>,
sourcefn into_expected_type(self) -> Result<U, ConversionError>
fn into_expected_type(self) -> Result<U, ConversionError>
Casts this value as the target type, making the assumption that the types are correct. Read more