pub enum EntityTarget {
Name(AssetId),
Entity(Entity),
}Expand description
How a runtime request addresses the entity it acts on. Authored placements are named, so a producer holding no live handle addresses them by asset name and the applying system resolves it. Logic that already holds an entity – one it spawned, one a query yielded – addresses it directly, which is the only way to reach an entity that never had a name.
Variants§
Name(AssetId)
Addressed by the placement’s authored name.
Entity(Entity)
Addressed by a live entity handle.
Implementations§
Trait Implementations§
Source§impl Clone for EntityTarget
impl Clone for EntityTarget
Source§fn clone(&self) -> EntityTarget
fn clone(&self) -> EntityTarget
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for EntityTarget
Source§impl Debug for EntityTarget
impl Debug for EntityTarget
Source§impl Default for EntityTarget
impl Default for EntityTarget
impl Eq for EntityTarget
Source§impl From<AssetId> for EntityTarget
impl From<AssetId> for EntityTarget
Source§impl From<Entity> for EntityTarget
impl From<Entity> for EntityTarget
Source§impl PartialEq for EntityTarget
impl PartialEq for EntityTarget
impl StructuralPartialEq for EntityTarget
Auto Trait Implementations§
impl Freeze for EntityTarget
impl RefUnwindSafe for EntityTarget
impl Send for EntityTarget
impl Sync for EntityTarget
impl Unpin for EntityTarget
impl UnsafeUnpin for EntityTarget
impl UnwindSafe for EntityTarget
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.