pub struct Entity(_);
Expand description
An opaque copyable identifier that is used to attach and fetch components
Trait Implementations§
source§impl AsEntity for Entity
impl AsEntity for Entity
fn as_entity(&self) -> Entity
fn try_get_cmp<'a, C: 'static>( &self ) -> Option<OwningRef<StorageGuard<C, StorageRef<'a, C>>, C>>where Self: Sized,
fn try_get_cmp_mut<'a, C: 'static>( &self ) -> Option<OwningRefMut<StorageGuardMut<C, StorageRefMut<'a, C>>, C>>where Self: Sized,
fn get_cmp<'a, C: 'static>( &self ) -> OwningRef<StorageGuard<C, StorageRef<'a, C>>, C>
fn get_cmp_mut<'a, C: 'static>( &self ) -> OwningRefMut<StorageGuardMut<C, StorageRefMut<'a, C>>, C>
fn get_cmp_mut_or<'a, C: 'static>( &self, f: impl FnOnce() -> C ) -> OwningRefMut<StorageGuardMut<C, StorageRefMut<'a, C>>, C>
fn get_cmp_mut_or_default<'a, C: 'static + Default>( &self ) -> OwningRefMut<StorageGuardMut<C, StorageRefMut<'a, C>>, C>
fn remove_cmp<C: 'static>(&self)where Self: Sized,
fn find_in_ancestors<Q: Query>(&self) -> Vec<Q::Fetch>
fn try_find_first_in_ancestors<Q: Query>(&self) -> Option<Q::Fetch>
fn find_first_in_ancestors<Q: Query>(&self) -> Q::Fetch
fn find_in_descendants<Q: Query>(&self) -> Vec<Q::Fetch>
fn find_in_children<Q: Query>(&self) -> Vec<Q::Fetch>
fn try_find_first_in_descendants<Q: Query>(&self) -> Option<Q::Fetch>
fn try_find_first_in_children<Q: Query>(&self) -> Option<Q::Fetch>
fn find_first_in_descendants<Q: Query>(&self) -> Q::Fetch
fn find_first_in_children<Q: Query>(&self) -> Q::Fetch
fn remove(&self)
fn add_component<T: 'static>(&self, component: T)
fn component<T: 'static>(self, component: T) -> Selfwhere Self: Sized,
fn has_cmp<C: 'static>(&self) -> boolwhere Self: Sized,
fn is_dead(&self) -> bool
fn spawn(&self, f: impl Future<Output = ()> + 'static)
fn spawn_in<F: FnOnce(&Self) -> Fut, Fut: Future<Output = ()> + 'static>( self, f: F ) -> Selfwhere Self: Sized,
source§impl BorrowMut<Entity> for Parent
impl BorrowMut<Entity> for Parent
source§fn borrow_mut(&mut self) -> &mut Entity
fn borrow_mut(&mut self) -> &mut Entity
Mutably borrows from an owned value. Read more
source§impl Ord for Entity
impl Ord for Entity
source§impl PartialEq<Entity> for Entity
impl PartialEq<Entity> for Entity
source§impl PartialOrd<Entity> for Entity
impl PartialOrd<Entity> for Entity
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 moreimpl Copy for Entity
impl Eq for Entity
impl StructuralEq for Entity
impl StructuralPartialEq for Entity
Auto Trait Implementations§
impl RefUnwindSafe for Entity
impl Send for Entity
impl Sync for Entity
impl Unpin for Entity
impl UnwindSafe for Entity
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