[][src]Struct screeps::objects::StructureExtension

pub struct StructureExtension(_);

Trait Implementations

impl HasId for StructureExtension[src]

fn id(&self) -> String[src]

impl RoomObjectProperties for StructureExtension[src]

fn room(&self) -> Room[src]

impl StructureProperties for StructureExtension[src]

fn structure_type(&self) -> StructureType[src]

fn destroy(&self) -> ReturnCode[src]

fn is_active(&self) -> bool[src]

fn notify_when_attacked(&self, notify_when_attacked: bool) -> ReturnCode[src]

Usable on either owned structures or neutral structures in owned rooms, returns ReturnCode::NotOwner otherwise. Read more

fn as_structure(self) -> Structure where
    Self: SizedRoomObject
[src]

impl OwnedStructureProperties for StructureExtension[src]

fn my(&self) -> bool[src]

fn owner_name(&self) -> Option<String>[src]

fn as_owned_structure(self) -> OwnedStructure where
    Self: SizedRoomObject
[src]

impl CanStoreEnergy for StructureExtension[src]

fn energy(&self) -> u32[src]

fn energy_capacity(&self) -> u32[src]

impl HasEnergyForSpawn for StructureExtension[src]

impl Transferable for StructureExtension[src]

impl Withdrawable for StructureExtension[src]

impl Attackable for StructureExtension[src]

fn hits(&self) -> u32[src]

fn hits_max(&self) -> u32[src]

impl FromExpectedType<Reference> for StructureExtension[src]

impl From<StructureExtension> for Reference[src]

impl PartialEq<StructureExtension> for StructureExtension[src]

#[must_use] fn ne(&self, other: &Rhs) -> bool1.0.0[src]

This method tests for !=.

impl Clone for StructureExtension[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl AsRef<Reference> for StructureExtension[src]

impl Eq for StructureExtension[src]

impl TryFrom<StructureExtension> for Reference[src]

type Error = Void

The type returned in the event of a conversion error.

impl TryFrom<Reference> for StructureExtension[src]

type Error = ConversionError

The type returned in the event of a conversion error.

impl<'_r> TryFrom<&'_r Reference> for StructureExtension[src]

type Error = ConversionError

The type returned in the event of a conversion error.

impl TryFrom<Value> for StructureExtension[src]

type Error = ConversionError

The type returned in the event of a conversion error.

impl<'_r> TryFrom<&'_r Value> for StructureExtension[src]

type Error = ConversionError

The type returned in the event of a conversion error.

impl JsSerialize for StructureExtension[src]

impl InstanceOf for StructureExtension[src]

impl ReferenceType for StructureExtension[src]

impl JsSerializeOwned for StructureExtension[src]

impl<'_r> JsSerializeOwned for &'_r StructureExtension[src]

Auto Trait Implementations

Blanket Implementations

impl<T> HasPosition for T where
    T: RoomObjectProperties
[src]

impl<T> SizedRoomObject for T where
    T: Into<Reference> + ReferenceType<Error = ConversionError, Error = ConversionError> + TryFrom<Value> + TryFrom<Reference> + RoomObjectProperties
[src]

impl<T> FromExpectedType<Value> for T where
    T: FromExpectedType<Reference>, 
[src]

impl<T, U> IntoExpectedType<U> for T where
    U: FromExpectedType<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.