Struct screeps::objects::RoomObject
source · pub struct RoomObject(_);
Trait Implementations
sourceimpl AsRef<Reference> for RoomObject
impl AsRef<Reference> for RoomObject
sourceimpl Clone for RoomObject
impl Clone for RoomObject
sourcefn clone(&self) -> RoomObject
fn clone(&self) -> RoomObject
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<RoomObject> for Reference
impl From<RoomObject> for Reference
sourcefn from(value: RoomObject) -> Self
fn from(value: RoomObject) -> Self
Converts to this type from the input type.
sourceimpl FromExpectedType<Reference> for RoomObject
impl FromExpectedType<Reference> for RoomObject
fn from_expected_type(reference: Reference) -> Result<Self, ConversionError>
sourceimpl InstanceOf for RoomObject
impl InstanceOf for RoomObject
sourcefn instance_of(reference: &Reference) -> bool
fn instance_of(reference: &Reference) -> bool
Checks whenever a given Reference if of type
Self
.sourceimpl ReferenceType for RoomObject
impl ReferenceType for RoomObject
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 RoomObject
impl RoomObjectProperties for RoomObject
sourceimpl<'_r> TryFrom<&'_r Reference> for RoomObject
impl<'_r> TryFrom<&'_r Reference> for RoomObject
sourceimpl<'_r> TryFrom<&'_r Value> for RoomObject
impl<'_r> TryFrom<&'_r Value> for RoomObject
sourceimpl TryFrom<Reference> for RoomObject
impl TryFrom<Reference> for RoomObject
sourceimpl TryFrom<RoomObject> for Reference
impl TryFrom<RoomObject> for Reference
sourceimpl TryFrom<Value> for RoomObject
impl TryFrom<Value> for RoomObject
impl JsSerialize for RoomObject
Auto Trait Implementations
impl RefUnwindSafe for RoomObject
impl Send for RoomObject
impl Sync for RoomObject
impl Unpin for RoomObject
impl UnwindSafe for RoomObject
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