Struct screeps::objects::StructureExtension
source · pub struct StructureExtension(_);
Trait Implementations
sourceimpl AsRef<Reference> for StructureExtension
impl AsRef<Reference> for StructureExtension
sourceimpl Attackable for StructureExtension
impl Attackable for StructureExtension
sourceimpl CanStoreEnergy for StructureExtension
impl CanStoreEnergy for StructureExtension
sourceimpl Clone for StructureExtension
impl Clone for StructureExtension
sourcefn clone(&self) -> StructureExtension
fn clone(&self) -> StructureExtension
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 From<StructureExtension> for Reference
impl From<StructureExtension> for Reference
sourcefn from(value: StructureExtension) -> Self
fn from(value: StructureExtension) -> Self
Converts to this type from the input type.
sourceimpl FromExpectedType<Reference> for StructureExtension
impl FromExpectedType<Reference> for StructureExtension
fn from_expected_type(reference: Reference) -> Result<Self, ConversionError>
sourceimpl InstanceOf for StructureExtension
impl InstanceOf for StructureExtension
sourcefn instance_of(reference: &Reference) -> bool
fn instance_of(reference: &Reference) -> bool
Checks whenever a given Reference if of type
Self
.sourceimpl OwnedStructureProperties for StructureExtension
impl OwnedStructureProperties for StructureExtension
fn my(&self) -> bool
fn owner_name(&self) -> Option<String>
fn as_owned_structure(self) -> OwnedStructure
sourceimpl PartialEq<StructureExtension> for StructureExtension
impl PartialEq<StructureExtension> for StructureExtension
sourcefn eq(&self, other: &StructureExtension) -> bool
fn eq(&self, other: &StructureExtension) -> bool
sourceimpl ReferenceType for StructureExtension
impl ReferenceType for StructureExtension
sourceunsafe fn from_reference_unchecked(reference: Reference) -> Self
unsafe fn from_reference_unchecked(reference: Reference) -> Self
Converts a given reference into a concrete reference-like wrapper.
Doesn’t do any type checking; highly unsafe to use! Read more
sourceimpl StructureProperties for StructureExtension
impl StructureProperties for StructureExtension
fn structure_type(&self) -> StructureType
fn destroy(&self) -> ReturnCode
fn is_active(&self) -> bool
sourcefn notify_when_attacked(&self, notify_when_attacked: bool) -> ReturnCode
fn notify_when_attacked(&self, notify_when_attacked: bool) -> ReturnCode
Usable on either owned structures or neutral structures in owned rooms,
returns
ReturnCode::NotOwner
otherwise. Read morefn as_structure(self) -> Structure
sourceimpl<'_r> TryFrom<&'_r Reference> for StructureExtension
impl<'_r> TryFrom<&'_r Reference> for StructureExtension
sourceimpl<'_r> TryFrom<&'_r Value> for StructureExtension
impl<'_r> TryFrom<&'_r Value> for StructureExtension
sourceimpl TryFrom<Reference> for StructureExtension
impl TryFrom<Reference> for StructureExtension
sourceimpl TryFrom<StructureExtension> for Reference
impl TryFrom<StructureExtension> for Reference
sourceimpl TryFrom<Value> for StructureExtension
impl TryFrom<Value> for StructureExtension
impl Eq for StructureExtension
impl HasEnergyForSpawn for StructureExtension
impl JsSerialize for StructureExtension
impl Transferable for StructureExtension
impl Withdrawable for StructureExtension
Auto Trait Implementations
impl RefUnwindSafe for StructureExtension
impl Send for StructureExtension
impl Sync for StructureExtension
impl Unpin for StructureExtension
impl UnwindSafe for StructureExtension
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> FromExpectedType<Value> for Twhere
T: FromExpectedType<Reference>,
impl<T> FromExpectedType<Value> for Twhere
T: FromExpectedType<Reference>,
fn from_expected_type(v: Value) -> Result<T, ConversionError>
sourceimpl<T> HasPosition for Twhere
T: RoomObjectProperties,
impl<T> HasPosition for Twhere
T: RoomObjectProperties,
fn pos(&self) -> RoomPosition
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