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