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