Struct ambient_api::global::EntityId
source · pub struct EntityId(/* private fields */);
Expand description
An identifier for an entity in the world.
Implementations§
source§impl EntityId
impl EntityId
sourcepub fn from_base64(encoded: &str) -> EntityId
pub fn from_base64(encoded: &str) -> EntityId
sourcepub fn is_resources(&self) -> bool
pub fn is_resources(&self) -> bool
Returns true if this is pointing to a resources entity
Trait Implementations§
source§impl<'de> Deserialize<'de> for EntityId
impl<'de> Deserialize<'de> for EntityId
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<EntityId, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<EntityId, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl MessageSerde for EntityId
impl MessageSerde for EntityId
source§fn serialize_message_part(
&self,
output: &mut Vec<u8>
) -> Result<(), MessageSerdeError>
fn serialize_message_part( &self, output: &mut Vec<u8> ) -> Result<(), MessageSerdeError>
Serialize this to a
Vec<u8>
.source§fn deserialize_message_part(
input: &mut dyn Read
) -> Result<EntityId, MessageSerdeError>
fn deserialize_message_part( input: &mut dyn Read ) -> Result<EntityId, MessageSerdeError>
Deserialize this if possible.
source§impl Ord for EntityId
impl Ord for EntityId
source§impl PartialEq for EntityId
impl PartialEq for EntityId
source§impl PartialOrd for EntityId
impl PartialOrd for EntityId
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for EntityId
impl Serialize for EntityId
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
source§impl SupportedValue for EntityId
impl SupportedValue for EntityId
source§fn from_value(value: ComponentValue) -> Option<EntityId>
fn from_value(value: ComponentValue) -> Option<EntityId>
Converts a
ComponentValue
into a Self
.source§fn into_value(self) -> ComponentValue
fn into_value(self) -> ComponentValue
Converts a
Self
into a ComponentValue
.impl Copy for EntityId
impl Eq for EntityId
impl StructuralEq for EntityId
impl StructuralPartialEq for EntityId
Auto Trait Implementations§
impl RefUnwindSafe for EntityId
impl Send for EntityId
impl Sync for EntityId
impl Unpin for EntityId
impl UnwindSafe for EntityId
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
Mutably borrows from an owned value. Read more
source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<T> Downcast for T
impl<T> Downcast for T
source§impl<T> ElementComponentName for T
impl<T> ElementComponentName for T
source§fn element_component_name(&self) -> &'static str
fn element_component_name(&self) -> &'static str
Returns the name of the type implementing ElementComponent.
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.