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