Struct screeps::objects::SymbolContainer
source · [−]pub struct SymbolContainer(_);
Implementations
sourceimpl SymbolContainer
impl SymbolContainer
pub fn resource_type(&self) -> ResourceType
Available on crate feature
symbols
only.Trait Implementations
sourceimpl AsRef<Reference> for SymbolContainer
impl AsRef<Reference> for SymbolContainer
sourceimpl CanDecay for SymbolContainer
Available on crate feature symbols
only.
impl CanDecay for SymbolContainer
Available on crate feature
symbols
only.fn ticks_to_decay(&self) -> u32
sourceimpl Clone for SymbolContainer
impl Clone for SymbolContainer
sourcefn clone(&self) -> SymbolContainer
fn clone(&self) -> SymbolContainer
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 more
sourceimpl From<SymbolContainer> for Reference
impl From<SymbolContainer> for Reference
sourcefn from(value: SymbolContainer) -> Self
fn from(value: SymbolContainer) -> Self
Converts to this type from the input type.
sourceimpl FromExpectedType<Reference> for SymbolContainer
impl FromExpectedType<Reference> for SymbolContainer
fn from_expected_type(reference: Reference) -> Result<Self, ConversionError>
sourceimpl HasId for SymbolContainer
impl HasId for SymbolContainer
sourcefn untyped_id(&self) -> RawObjectId
fn untyped_id(&self) -> RawObjectId
Retrieves this object’s id as an untyped, packed value. Read more
sourceimpl HasStore for SymbolContainer
Available on crate feature symbols
only.
impl HasStore for SymbolContainer
Available on crate feature
symbols
only.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, resource: Option<ResourceType>) -> u32
fn store_free_capacity(&self, resource: Option<ResourceType>) -> i32
fn store_used_capacity(&self, resource: Option<ResourceType>) -> u32
sourceimpl InstanceOf for SymbolContainer
impl InstanceOf for SymbolContainer
sourcefn instance_of(reference: &Reference) -> bool
fn instance_of(reference: &Reference) -> bool
Checks whenever a given Reference if of type Self
.
sourceimpl PartialEq<SymbolContainer> for SymbolContainer
impl PartialEq<SymbolContainer> for SymbolContainer
sourcefn eq(&self, other: &SymbolContainer) -> bool
fn eq(&self, other: &SymbolContainer) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourceimpl ReferenceType for SymbolContainer
impl ReferenceType for SymbolContainer
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 SymbolContainer
Available on crate feature symbols
only.
impl RoomObjectProperties for SymbolContainer
Available on crate feature
symbols
only.sourceimpl<'_r> TryFrom<&'_r Reference> for SymbolContainer
impl<'_r> TryFrom<&'_r Reference> for SymbolContainer
sourceimpl<'_r> TryFrom<&'_r Value> for SymbolContainer
impl<'_r> TryFrom<&'_r Value> for SymbolContainer
sourceimpl TryFrom<Reference> for SymbolContainer
impl TryFrom<Reference> for SymbolContainer
sourceimpl TryFrom<SymbolContainer> for Reference
impl TryFrom<SymbolContainer> for Reference
sourceimpl TryFrom<Value> for SymbolContainer
impl TryFrom<Value> for SymbolContainer
impl Eq for SymbolContainer
impl JsSerialize for SymbolContainer
impl Withdrawable for SymbolContainer
Available on crate feature
symbols
only.Auto Trait Implementations
impl RefUnwindSafe for SymbolContainer
impl Send for SymbolContainer
impl Sync for SymbolContainer
impl Unpin for SymbolContainer
impl UnwindSafe for SymbolContainer
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,
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