Struct ambient_api_core::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) -> Self
pub fn from_base64(encoded: &str) -> Self
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<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::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<Self, MessageSerdeError>
fn deserialize_message_part( input: &mut dyn Read ) -> Result<Self, 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 SupportedValue for EntityId
impl SupportedValue for EntityId
source§fn from_value(value: ComponentValue) -> Option<Self>
fn from_value(value: ComponentValue) -> Option<Self>
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<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.