Enum screeps::constants::StructureType
source · #[repr(u32)]
pub enum StructureType {
Show 19 variants
Spawn,
Extension,
Road,
Wall,
Rampart,
KeeperLair,
Portal,
Controller,
Link,
Storage,
Tower,
Observer,
PowerBank,
PowerSpawn,
Extractor,
Lab,
Terminal,
Container,
Nuker,
}
Variants
Spawn
Extension
Road
Wall
Rampart
KeeperLair
Portal
Controller
Link
Storage
Tower
Observer
PowerBank
PowerSpawn
Extractor
Lab
Terminal
Container
Nuker
Implementations
sourceimpl StructureType
impl StructureType
pub fn construction_cost(self) -> u32
pub fn initial_hits(self) -> u32
Trait Implementations
sourceimpl Clone for StructureType
impl Clone for StructureType
sourcefn clone(&self) -> StructureType
fn clone(&self) -> StructureType
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 StructureType
impl Debug for StructureType
sourceimpl PartialEq<StructureType> for StructureType
impl PartialEq<StructureType> for StructureType
sourcefn eq(&self, other: &StructureType) -> bool
fn eq(&self, other: &StructureType) -> bool
sourceimpl TryFrom<Value> for StructureType
impl TryFrom<Value> for StructureType
impl Copy for StructureType
impl Eq for StructureType
impl StructuralEq for StructureType
impl StructuralPartialEq for StructureType
Auto Trait Implementations
impl RefUnwindSafe for StructureType
impl Send for StructureType
impl Sync for StructureType
impl Unpin for StructureType
impl UnwindSafe for StructureType
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