pub struct EntityHandle<E: AsEntityData> {
pub handle: u32,
/* private fields */
}Expand description
Wrapper for an entity handle.
The phantom member holds information about what type of entity it references,
which is used to check that entity definitions receive the correct type of entity
handle.
Fields§
§handle: u32The entity handle
Trait Implementations§
Source§impl<E: AsEntityData + 'static> AsEntityHandle for EntityHandle<E>
impl<E: AsEntityData + 'static> AsEntityHandle for EntityHandle<E>
Source§impl<E: Clone + AsEntityData> Clone for EntityHandle<E>
impl<E: Clone + AsEntityData> Clone for EntityHandle<E>
Source§fn clone(&self) -> EntityHandle<E>
fn clone(&self) -> EntityHandle<E>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<E: Debug + AsEntityData> Debug for EntityHandle<E>
impl<E: Debug + AsEntityData> Debug for EntityHandle<E>
Source§impl<'de, E: AsEntityData> Deserialize<'de> for EntityHandle<E>
impl<'de, E: AsEntityData> Deserialize<'de> for EntityHandle<E>
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<E: PartialEq + AsEntityData> PartialEq for EntityHandle<E>
impl<E: PartialEq + AsEntityData> PartialEq for EntityHandle<E>
Source§impl<E: AsEntityData> Serialize for EntityHandle<E>
impl<E: AsEntityData> Serialize for EntityHandle<E>
Source§impl<E: AsEntityData + Copy + 'static> TryFrom<&Box<dyn AsEntityHandle>> for EntityHandle<E>
impl<E: AsEntityData + Copy + 'static> TryFrom<&Box<dyn AsEntityHandle>> for EntityHandle<E>
impl<E: Copy + AsEntityData> Copy for EntityHandle<E>
impl<E: Eq + AsEntityData> Eq for EntityHandle<E>
impl<E: AsEntityData> StructuralPartialEq for EntityHandle<E>
Auto Trait Implementations§
impl<E> Freeze for EntityHandle<E>
impl<E> RefUnwindSafe for EntityHandle<E>where
E: RefUnwindSafe,
impl<E> Send for EntityHandle<E>where
E: Send,
impl<E> Sync for EntityHandle<E>where
E: Sync,
impl<E> Unpin for EntityHandle<E>where
E: Unpin,
impl<E> UnwindSafe for EntityHandle<E>where
E: UnwindSafe,
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