Struct screeps::objects::StructureWall
source · pub struct StructureWall(_);
Trait Implementations
sourceimpl AsRef<Reference> for StructureWall
impl AsRef<Reference> for StructureWall
sourceimpl Attackable for StructureWall
impl Attackable for StructureWall
sourceimpl Clone for StructureWall
impl Clone for StructureWall
sourcefn clone(&self) -> StructureWall
fn clone(&self) -> StructureWall
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<StructureWall> for Reference
impl From<StructureWall> for Reference
sourcefn from(value: StructureWall) -> Self
fn from(value: StructureWall) -> Self
Converts to this type from the input type.
sourceimpl FromExpectedType<Reference> for StructureWall
impl FromExpectedType<Reference> for StructureWall
fn from_expected_type(reference: Reference) -> Result<Self, ConversionError>
sourceimpl InstanceOf for StructureWall
impl InstanceOf for StructureWall
sourcefn instance_of(reference: &Reference) -> bool
fn instance_of(reference: &Reference) -> bool
Checks whenever a given Reference if of type
Self
.sourceimpl PartialEq<StructureWall> for StructureWall
impl PartialEq<StructureWall> for StructureWall
sourcefn eq(&self, other: &StructureWall) -> bool
fn eq(&self, other: &StructureWall) -> bool
sourceimpl ReferenceType for StructureWall
impl ReferenceType for StructureWall
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 RoomObjectProperties for StructureWall
impl RoomObjectProperties for StructureWall
sourceimpl StructureProperties for StructureWall
impl StructureProperties for StructureWall
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 StructureWall
impl<'_r> TryFrom<&'_r Reference> for StructureWall
sourceimpl<'_r> TryFrom<&'_r Value> for StructureWall
impl<'_r> TryFrom<&'_r Value> for StructureWall
sourceimpl TryFrom<Reference> for StructureWall
impl TryFrom<Reference> for StructureWall
sourceimpl TryFrom<StructureWall> for Reference
impl TryFrom<StructureWall> for Reference
sourceimpl TryFrom<Value> for StructureWall
impl TryFrom<Value> for StructureWall
impl Eq for StructureWall
impl JsSerialize for StructureWall
Auto Trait Implementations
impl RefUnwindSafe for StructureWall
impl Send for StructureWall
impl Sync for StructureWall
impl Unpin for StructureWall
impl UnwindSafe for StructureWall
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