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