pub struct Parent(pub Entity);
Expand description
A component with a single Entity
representing the parent
Tuple Fields§
§0: Entity
Implementations§
Trait Implementations§
source§impl AsEntity for Parent
impl AsEntity for Parent
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 PartialEq<Parent> for Parent
impl PartialEq<Parent> for Parent
impl Copy for Parent
impl Eq for Parent
impl StructuralEq for Parent
impl StructuralPartialEq for Parent
Auto Trait Implementations§
impl RefUnwindSafe for Parent
impl Send for Parent
impl Sync for Parent
impl Unpin for Parent
impl UnwindSafe for Parent
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