pub trait AsEntity {
Show 24 methods
// Required method
fn as_entity(&self) -> Entity;
// Provided methods
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) -> Self
where Self: Sized { ... }
fn has_cmp<C: 'static>(&self) -> bool
where 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
) -> Self
where Self: Sized { ... }
}