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