Struct screeps::objects::RoomObject
source · pub struct RoomObject { /* private fields */ }
Expand description
Parent class for all objects in rooms in the game world.
Implementations§
source§impl RoomObject
impl RoomObject
sourcepub fn js_pos(&self) -> RoomPosition
pub fn js_pos(&self) -> RoomPosition
Gets the RoomPosition
of an object, which is a reference to an
object in the javascript heap. In most cases, you’ll likely want a
native Position
instead of using this function (see
HasPosition::pos
), there may be cases where this can provide
some slight performance benefits due to reducing object churn in the js
heap, so this is kept public.
Methods from Deref<Target = JsValue>§
pub const NULL: JsValue = _
pub const UNDEFINED: JsValue = _
pub const TRUE: JsValue = _
pub const FALSE: JsValue = _
sourcepub fn as_f64(&self) -> Option<f64>
pub fn as_f64(&self) -> Option<f64>
Returns the f64
value of this JS value if it’s an instance of a
number.
If this JS value is not an instance of a number then this returns
None
.
sourcepub fn as_string(&self) -> Option<String>
Available on crate feature std
only.
pub fn as_string(&self) -> Option<String>
std
only.If this JS value is a string value, this function copies the JS string
value into wasm linear memory, encoded as UTF-8, and returns it as a
Rust String
.
To avoid the copying and re-encoding, consider the
JsString::try_from()
function from js-sys
instead.
If this JS value is not an instance of a string or if it’s not valid
utf-8 then this returns None
.
UTF-16 vs UTF-8
JavaScript strings in general are encoded as UTF-16, but Rust strings
are encoded as UTF-8. This can cause the Rust string to look a bit
different than the JS string sometimes. For more details see the
documentation about the str
type which contains a few
caveats about the encodings.
sourcepub fn as_bool(&self) -> Option<bool>
pub fn as_bool(&self) -> Option<bool>
Returns the bool
value of this JS value if it’s an instance of a
boolean.
If this JS value is not an instance of a boolean then this returns
None
.
sourcepub fn is_undefined(&self) -> bool
pub fn is_undefined(&self) -> bool
Tests whether this JS value is undefined
sourcepub fn is_function(&self) -> bool
pub fn is_function(&self) -> bool
Tests whether the type of this JS value is function
.
sourcepub fn js_in(&self, obj: &JsValue) -> bool
pub fn js_in(&self, obj: &JsValue) -> bool
Applies the binary in
JS operator on the two JsValue
s.
sourcepub fn loose_eq(&self, other: &JsValue) -> bool
pub fn loose_eq(&self, other: &JsValue) -> bool
Compare two JsValue
s for equality, using the ==
operator in JS.
sourcepub fn unsigned_shr(&self, rhs: &JsValue) -> u32
pub fn unsigned_shr(&self, rhs: &JsValue) -> u32
Applies the binary >>>
JS operator on the two JsValue
s.
sourcepub fn checked_div(&self, rhs: &JsValue) -> JsValue
pub fn checked_div(&self, rhs: &JsValue) -> JsValue
Applies the binary /
JS operator on two JsValue
s, catching and returning any RangeError
thrown.
sourcepub fn pow(&self, rhs: &JsValue) -> JsValue
pub fn pow(&self, rhs: &JsValue) -> JsValue
Applies the binary **
JS operator on the two JsValue
s.
sourcepub fn lt(&self, other: &JsValue) -> bool
pub fn lt(&self, other: &JsValue) -> bool
Applies the binary <
JS operator on the two JsValue
s.
sourcepub fn le(&self, other: &JsValue) -> bool
pub fn le(&self, other: &JsValue) -> bool
Applies the binary <=
JS operator on the two JsValue
s.
sourcepub fn ge(&self, other: &JsValue) -> bool
pub fn ge(&self, other: &JsValue) -> bool
Applies the binary >=
JS operator on the two JsValue
s.
sourcepub fn gt(&self, other: &JsValue) -> bool
pub fn gt(&self, other: &JsValue) -> bool
Applies the binary >
JS operator on the two JsValue
s.
sourcepub fn unchecked_into_f64(&self) -> f64
pub fn unchecked_into_f64(&self) -> f64
Applies the unary +
JS operator on a JsValue
. Can throw.
Trait Implementations§
source§impl AsRef<JsValue> for RoomObject
impl AsRef<JsValue> for RoomObject
source§impl AsRef<RoomObject> for AttackableObject
impl AsRef<RoomObject> for AttackableObject
source§fn as_ref(&self) -> &RoomObject
fn as_ref(&self) -> &RoomObject
source§impl AsRef<RoomObject> for ConstructionSite
impl AsRef<RoomObject> for ConstructionSite
source§fn as_ref(&self) -> &RoomObject
fn as_ref(&self) -> &RoomObject
source§impl AsRef<RoomObject> for Creep
impl AsRef<RoomObject> for Creep
source§fn as_ref(&self) -> &RoomObject
fn as_ref(&self) -> &RoomObject
source§impl AsRef<RoomObject> for Deposit
impl AsRef<RoomObject> for Deposit
source§fn as_ref(&self) -> &RoomObject
fn as_ref(&self) -> &RoomObject
source§impl AsRef<RoomObject> for Flag
impl AsRef<RoomObject> for Flag
source§fn as_ref(&self) -> &RoomObject
fn as_ref(&self) -> &RoomObject
source§impl AsRef<RoomObject> for Mineral
impl AsRef<RoomObject> for Mineral
source§fn as_ref(&self) -> &RoomObject
fn as_ref(&self) -> &RoomObject
source§impl AsRef<RoomObject> for Nuke
impl AsRef<RoomObject> for Nuke
source§fn as_ref(&self) -> &RoomObject
fn as_ref(&self) -> &RoomObject
source§impl AsRef<RoomObject> for OwnedStructure
impl AsRef<RoomObject> for OwnedStructure
source§fn as_ref(&self) -> &RoomObject
fn as_ref(&self) -> &RoomObject
source§impl AsRef<RoomObject> for PowerCreep
impl AsRef<RoomObject> for PowerCreep
source§fn as_ref(&self) -> &RoomObject
fn as_ref(&self) -> &RoomObject
source§impl AsRef<RoomObject> for Reactor
Available on crate feature seasonal-season-5
only.
impl AsRef<RoomObject> for Reactor
seasonal-season-5
only.source§fn as_ref(&self) -> &RoomObject
fn as_ref(&self) -> &RoomObject
source§impl AsRef<RoomObject> for Resource
impl AsRef<RoomObject> for Resource
source§fn as_ref(&self) -> &RoomObject
fn as_ref(&self) -> &RoomObject
source§impl AsRef<RoomObject> for RoomObject
impl AsRef<RoomObject> for RoomObject
source§fn as_ref(&self) -> &RoomObject
fn as_ref(&self) -> &RoomObject
source§impl AsRef<RoomObject> for Ruin
impl AsRef<RoomObject> for Ruin
source§fn as_ref(&self) -> &RoomObject
fn as_ref(&self) -> &RoomObject
source§impl AsRef<RoomObject> for ScoreCollector
Available on crate feature seasonal-season-1
only.
impl AsRef<RoomObject> for ScoreCollector
seasonal-season-1
only.source§fn as_ref(&self) -> &RoomObject
fn as_ref(&self) -> &RoomObject
source§impl AsRef<RoomObject> for ScoreContainer
Available on crate feature seasonal-season-1
only.
impl AsRef<RoomObject> for ScoreContainer
seasonal-season-1
only.source§fn as_ref(&self) -> &RoomObject
fn as_ref(&self) -> &RoomObject
source§impl AsRef<RoomObject> for Source
impl AsRef<RoomObject> for Source
source§fn as_ref(&self) -> &RoomObject
fn as_ref(&self) -> &RoomObject
source§impl AsRef<RoomObject> for Structure
impl AsRef<RoomObject> for Structure
source§fn as_ref(&self) -> &RoomObject
fn as_ref(&self) -> &RoomObject
source§impl AsRef<RoomObject> for StructureContainer
impl AsRef<RoomObject> for StructureContainer
source§fn as_ref(&self) -> &RoomObject
fn as_ref(&self) -> &RoomObject
source§impl AsRef<RoomObject> for StructureController
impl AsRef<RoomObject> for StructureController
source§fn as_ref(&self) -> &RoomObject
fn as_ref(&self) -> &RoomObject
source§impl AsRef<RoomObject> for StructureExtension
impl AsRef<RoomObject> for StructureExtension
source§fn as_ref(&self) -> &RoomObject
fn as_ref(&self) -> &RoomObject
source§impl AsRef<RoomObject> for StructureExtractor
impl AsRef<RoomObject> for StructureExtractor
source§fn as_ref(&self) -> &RoomObject
fn as_ref(&self) -> &RoomObject
source§impl AsRef<RoomObject> for StructureFactory
impl AsRef<RoomObject> for StructureFactory
source§fn as_ref(&self) -> &RoomObject
fn as_ref(&self) -> &RoomObject
source§impl AsRef<RoomObject> for StructureInvaderCore
impl AsRef<RoomObject> for StructureInvaderCore
source§fn as_ref(&self) -> &RoomObject
fn as_ref(&self) -> &RoomObject
source§impl AsRef<RoomObject> for StructureKeeperLair
impl AsRef<RoomObject> for StructureKeeperLair
source§fn as_ref(&self) -> &RoomObject
fn as_ref(&self) -> &RoomObject
source§impl AsRef<RoomObject> for StructureLab
impl AsRef<RoomObject> for StructureLab
source§fn as_ref(&self) -> &RoomObject
fn as_ref(&self) -> &RoomObject
source§impl AsRef<RoomObject> for StructureLink
impl AsRef<RoomObject> for StructureLink
source§fn as_ref(&self) -> &RoomObject
fn as_ref(&self) -> &RoomObject
source§impl AsRef<RoomObject> for StructureNuker
impl AsRef<RoomObject> for StructureNuker
source§fn as_ref(&self) -> &RoomObject
fn as_ref(&self) -> &RoomObject
source§impl AsRef<RoomObject> for StructureObserver
impl AsRef<RoomObject> for StructureObserver
source§fn as_ref(&self) -> &RoomObject
fn as_ref(&self) -> &RoomObject
source§impl AsRef<RoomObject> for StructurePortal
impl AsRef<RoomObject> for StructurePortal
source§fn as_ref(&self) -> &RoomObject
fn as_ref(&self) -> &RoomObject
source§impl AsRef<RoomObject> for StructurePowerBank
impl AsRef<RoomObject> for StructurePowerBank
source§fn as_ref(&self) -> &RoomObject
fn as_ref(&self) -> &RoomObject
source§impl AsRef<RoomObject> for StructurePowerSpawn
impl AsRef<RoomObject> for StructurePowerSpawn
source§fn as_ref(&self) -> &RoomObject
fn as_ref(&self) -> &RoomObject
source§impl AsRef<RoomObject> for StructureRampart
impl AsRef<RoomObject> for StructureRampart
source§fn as_ref(&self) -> &RoomObject
fn as_ref(&self) -> &RoomObject
source§impl AsRef<RoomObject> for StructureRoad
impl AsRef<RoomObject> for StructureRoad
source§fn as_ref(&self) -> &RoomObject
fn as_ref(&self) -> &RoomObject
source§impl AsRef<RoomObject> for StructureSpawn
impl AsRef<RoomObject> for StructureSpawn
source§fn as_ref(&self) -> &RoomObject
fn as_ref(&self) -> &RoomObject
source§impl AsRef<RoomObject> for StructureStorage
impl AsRef<RoomObject> for StructureStorage
source§fn as_ref(&self) -> &RoomObject
fn as_ref(&self) -> &RoomObject
source§impl AsRef<RoomObject> for StructureTerminal
impl AsRef<RoomObject> for StructureTerminal
source§fn as_ref(&self) -> &RoomObject
fn as_ref(&self) -> &RoomObject
source§impl AsRef<RoomObject> for StructureTower
impl AsRef<RoomObject> for StructureTower
source§fn as_ref(&self) -> &RoomObject
fn as_ref(&self) -> &RoomObject
source§impl AsRef<RoomObject> for StructureWall
impl AsRef<RoomObject> for StructureWall
source§fn as_ref(&self) -> &RoomObject
fn as_ref(&self) -> &RoomObject
source§impl AsRef<RoomObject> for SymbolContainer
Available on crate feature seasonal-season-2
only.
impl AsRef<RoomObject> for SymbolContainer
seasonal-season-2
only.source§fn as_ref(&self) -> &RoomObject
fn as_ref(&self) -> &RoomObject
source§impl AsRef<RoomObject> for SymbolDecoder
Available on crate feature seasonal-season-2
only.
impl AsRef<RoomObject> for SymbolDecoder
seasonal-season-2
only.source§fn as_ref(&self) -> &RoomObject
fn as_ref(&self) -> &RoomObject
source§impl AsRef<RoomObject> for Tombstone
impl AsRef<RoomObject> for Tombstone
source§fn as_ref(&self) -> &RoomObject
fn as_ref(&self) -> &RoomObject
source§impl AsRef<RoomObject> for TransferableObject
impl AsRef<RoomObject> for TransferableObject
source§fn as_ref(&self) -> &RoomObject
fn as_ref(&self) -> &RoomObject
source§impl Clone for RoomObject
impl Clone for RoomObject
source§fn clone(&self) -> RoomObject
fn clone(&self) -> RoomObject
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RoomObject
impl Debug for RoomObject
source§impl Deref for RoomObject
impl Deref for RoomObject
source§impl From<AttackableObject> for RoomObject
impl From<AttackableObject> for RoomObject
source§fn from(attackable: AttackableObject) -> Self
fn from(attackable: AttackableObject) -> Self
source§impl From<ConstructionSite> for RoomObject
impl From<ConstructionSite> for RoomObject
source§fn from(obj: ConstructionSite) -> RoomObject
fn from(obj: ConstructionSite) -> RoomObject
source§impl From<Creep> for RoomObject
impl From<Creep> for RoomObject
source§fn from(obj: Creep) -> RoomObject
fn from(obj: Creep) -> RoomObject
source§impl From<Deposit> for RoomObject
impl From<Deposit> for RoomObject
source§fn from(obj: Deposit) -> RoomObject
fn from(obj: Deposit) -> RoomObject
source§impl From<Flag> for RoomObject
impl From<Flag> for RoomObject
source§fn from(obj: Flag) -> RoomObject
fn from(obj: Flag) -> RoomObject
source§impl From<JsValue> for RoomObject
impl From<JsValue> for RoomObject
source§fn from(obj: JsValue) -> RoomObject
fn from(obj: JsValue) -> RoomObject
source§impl From<Mineral> for RoomObject
impl From<Mineral> for RoomObject
source§fn from(obj: Mineral) -> RoomObject
fn from(obj: Mineral) -> RoomObject
source§impl From<Nuke> for RoomObject
impl From<Nuke> for RoomObject
source§fn from(obj: Nuke) -> RoomObject
fn from(obj: Nuke) -> RoomObject
source§impl From<OwnedStructure> for RoomObject
impl From<OwnedStructure> for RoomObject
source§fn from(obj: OwnedStructure) -> RoomObject
fn from(obj: OwnedStructure) -> RoomObject
source§impl From<PowerCreep> for RoomObject
impl From<PowerCreep> for RoomObject
source§fn from(obj: PowerCreep) -> RoomObject
fn from(obj: PowerCreep) -> RoomObject
source§impl From<Reactor> for RoomObject
Available on crate feature seasonal-season-5
only.
impl From<Reactor> for RoomObject
seasonal-season-5
only.source§fn from(obj: Reactor) -> RoomObject
fn from(obj: Reactor) -> RoomObject
source§impl From<Resource> for RoomObject
impl From<Resource> for RoomObject
source§fn from(obj: Resource) -> RoomObject
fn from(obj: Resource) -> RoomObject
source§impl From<RoomObject> for JsValue
impl From<RoomObject> for JsValue
source§fn from(obj: RoomObject) -> JsValue
fn from(obj: RoomObject) -> JsValue
source§impl From<Ruin> for RoomObject
impl From<Ruin> for RoomObject
source§fn from(obj: Ruin) -> RoomObject
fn from(obj: Ruin) -> RoomObject
source§impl From<ScoreCollector> for RoomObject
Available on crate feature seasonal-season-1
only.
impl From<ScoreCollector> for RoomObject
seasonal-season-1
only.source§fn from(obj: ScoreCollector) -> RoomObject
fn from(obj: ScoreCollector) -> RoomObject
source§impl From<ScoreContainer> for RoomObject
Available on crate feature seasonal-season-1
only.
impl From<ScoreContainer> for RoomObject
seasonal-season-1
only.source§fn from(obj: ScoreContainer) -> RoomObject
fn from(obj: ScoreContainer) -> RoomObject
source§impl From<Source> for RoomObject
impl From<Source> for RoomObject
source§fn from(obj: Source) -> RoomObject
fn from(obj: Source) -> RoomObject
source§impl From<Structure> for RoomObject
impl From<Structure> for RoomObject
source§fn from(obj: Structure) -> RoomObject
fn from(obj: Structure) -> RoomObject
source§impl From<StructureContainer> for RoomObject
impl From<StructureContainer> for RoomObject
source§fn from(obj: StructureContainer) -> RoomObject
fn from(obj: StructureContainer) -> RoomObject
source§impl From<StructureController> for RoomObject
impl From<StructureController> for RoomObject
source§fn from(obj: StructureController) -> RoomObject
fn from(obj: StructureController) -> RoomObject
source§impl From<StructureExtension> for RoomObject
impl From<StructureExtension> for RoomObject
source§fn from(obj: StructureExtension) -> RoomObject
fn from(obj: StructureExtension) -> RoomObject
source§impl From<StructureExtractor> for RoomObject
impl From<StructureExtractor> for RoomObject
source§fn from(obj: StructureExtractor) -> RoomObject
fn from(obj: StructureExtractor) -> RoomObject
source§impl From<StructureFactory> for RoomObject
impl From<StructureFactory> for RoomObject
source§fn from(obj: StructureFactory) -> RoomObject
fn from(obj: StructureFactory) -> RoomObject
source§impl From<StructureInvaderCore> for RoomObject
impl From<StructureInvaderCore> for RoomObject
source§fn from(obj: StructureInvaderCore) -> RoomObject
fn from(obj: StructureInvaderCore) -> RoomObject
source§impl From<StructureKeeperLair> for RoomObject
impl From<StructureKeeperLair> for RoomObject
source§fn from(obj: StructureKeeperLair) -> RoomObject
fn from(obj: StructureKeeperLair) -> RoomObject
source§impl From<StructureLab> for RoomObject
impl From<StructureLab> for RoomObject
source§fn from(obj: StructureLab) -> RoomObject
fn from(obj: StructureLab) -> RoomObject
source§impl From<StructureLink> for RoomObject
impl From<StructureLink> for RoomObject
source§fn from(obj: StructureLink) -> RoomObject
fn from(obj: StructureLink) -> RoomObject
source§impl From<StructureNuker> for RoomObject
impl From<StructureNuker> for RoomObject
source§fn from(obj: StructureNuker) -> RoomObject
fn from(obj: StructureNuker) -> RoomObject
source§impl From<StructureObserver> for RoomObject
impl From<StructureObserver> for RoomObject
source§fn from(obj: StructureObserver) -> RoomObject
fn from(obj: StructureObserver) -> RoomObject
source§impl From<StructurePortal> for RoomObject
impl From<StructurePortal> for RoomObject
source§fn from(obj: StructurePortal) -> RoomObject
fn from(obj: StructurePortal) -> RoomObject
source§impl From<StructurePowerBank> for RoomObject
impl From<StructurePowerBank> for RoomObject
source§fn from(obj: StructurePowerBank) -> RoomObject
fn from(obj: StructurePowerBank) -> RoomObject
source§impl From<StructurePowerSpawn> for RoomObject
impl From<StructurePowerSpawn> for RoomObject
source§fn from(obj: StructurePowerSpawn) -> RoomObject
fn from(obj: StructurePowerSpawn) -> RoomObject
source§impl From<StructureRampart> for RoomObject
impl From<StructureRampart> for RoomObject
source§fn from(obj: StructureRampart) -> RoomObject
fn from(obj: StructureRampart) -> RoomObject
source§impl From<StructureRoad> for RoomObject
impl From<StructureRoad> for RoomObject
source§fn from(obj: StructureRoad) -> RoomObject
fn from(obj: StructureRoad) -> RoomObject
source§impl From<StructureSpawn> for RoomObject
impl From<StructureSpawn> for RoomObject
source§fn from(obj: StructureSpawn) -> RoomObject
fn from(obj: StructureSpawn) -> RoomObject
source§impl From<StructureStorage> for RoomObject
impl From<StructureStorage> for RoomObject
source§fn from(obj: StructureStorage) -> RoomObject
fn from(obj: StructureStorage) -> RoomObject
source§impl From<StructureTerminal> for RoomObject
impl From<StructureTerminal> for RoomObject
source§fn from(obj: StructureTerminal) -> RoomObject
fn from(obj: StructureTerminal) -> RoomObject
source§impl From<StructureTower> for RoomObject
impl From<StructureTower> for RoomObject
source§fn from(obj: StructureTower) -> RoomObject
fn from(obj: StructureTower) -> RoomObject
source§impl From<StructureWall> for RoomObject
impl From<StructureWall> for RoomObject
source§fn from(obj: StructureWall) -> RoomObject
fn from(obj: StructureWall) -> RoomObject
source§impl From<SymbolContainer> for RoomObject
Available on crate feature seasonal-season-2
only.
impl From<SymbolContainer> for RoomObject
seasonal-season-2
only.source§fn from(obj: SymbolContainer) -> RoomObject
fn from(obj: SymbolContainer) -> RoomObject
source§impl From<SymbolDecoder> for RoomObject
Available on crate feature seasonal-season-2
only.
impl From<SymbolDecoder> for RoomObject
seasonal-season-2
only.source§fn from(obj: SymbolDecoder) -> RoomObject
fn from(obj: SymbolDecoder) -> RoomObject
source§impl From<Tombstone> for RoomObject
impl From<Tombstone> for RoomObject
source§fn from(obj: Tombstone) -> RoomObject
fn from(obj: Tombstone) -> RoomObject
source§impl FromWasmAbi for RoomObject
impl FromWasmAbi for RoomObject
source§impl<'a> IntoWasmAbi for &'a RoomObject
impl<'a> IntoWasmAbi for &'a RoomObject
source§impl IntoWasmAbi for RoomObject
impl IntoWasmAbi for RoomObject
source§impl JsCast for RoomObject
impl JsCast for RoomObject
source§fn instanceof(val: &JsValue) -> bool
fn instanceof(val: &JsValue) -> bool
instanceof
check to see whether the JsValue
provided is an instance of this type. Read moresource§fn unchecked_from_js(val: JsValue) -> Self
fn unchecked_from_js(val: JsValue) -> Self
source§fn unchecked_from_js_ref(val: &JsValue) -> &Self
fn unchecked_from_js_ref(val: &JsValue) -> &Self
source§fn has_type<T>(&self) -> boolwhere
T: JsCast,
fn has_type<T>(&self) -> boolwhere
T: JsCast,
T
. Read moresource§fn dyn_into<T>(self) -> Result<T, Self>where
T: JsCast,
fn dyn_into<T>(self) -> Result<T, Self>where
T: JsCast,
T
. Read moresource§fn dyn_ref<T>(&self) -> Option<&T>where
T: JsCast,
fn dyn_ref<T>(&self) -> Option<&T>where
T: JsCast,
T
. Read moresource§fn unchecked_into<T>(self) -> Twhere
T: JsCast,
fn unchecked_into<T>(self) -> Twhere
T: JsCast,
source§fn unchecked_ref<T>(&self) -> &Twhere
T: JsCast,
fn unchecked_ref<T>(&self) -> &Twhere
T: JsCast,
source§impl LongRefFromWasmAbi for RoomObject
impl LongRefFromWasmAbi for RoomObject
§type Abi = <JsValue as LongRefFromWasmAbi>::Abi
type Abi = <JsValue as LongRefFromWasmAbi>::Abi
RefFromWasmAbi::Abi
§type Anchor = RoomObject
type Anchor = RoomObject
RefFromWasmAbi::Anchor
source§unsafe fn long_ref_from_abi(js: Self::Abi) -> Self::Anchor
unsafe fn long_ref_from_abi(js: Self::Abi) -> Self::Anchor
RefFromWasmAbi::ref_from_abi
source§impl OptionFromWasmAbi for RoomObject
impl OptionFromWasmAbi for RoomObject
source§impl<'a> OptionIntoWasmAbi for &'a RoomObject
impl<'a> OptionIntoWasmAbi for &'a RoomObject
source§impl OptionIntoWasmAbi for RoomObject
impl OptionIntoWasmAbi for RoomObject
source§impl RefFromWasmAbi for RoomObject
impl RefFromWasmAbi for RoomObject
§type Abi = <JsValue as RefFromWasmAbi>::Abi
type Abi = <JsValue as RefFromWasmAbi>::Abi
Self
are recovered from.§type Anchor = ManuallyDrop<RoomObject>
type Anchor = ManuallyDrop<RoomObject>
Self
for the duration of the
invocation of the function that has an &Self
parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> HasPosition for Twhere
T: AsRef<RoomObject>,
impl<T> HasPosition for Twhere
T: AsRef<RoomObject>,
source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
IntoWasmAbi::Abi
source§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
IntoWasmAbi::into_abi
, except that it may throw and never
return in the case of Err
.