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