pub trait Parent {
    fn parent_entity(&self) -> Entity;
}
Expand description

Bound for the parent component of your crate. Your Parent component usually just contains the Entity that’s the parent you’re linking to.

Note that the component should indicate that the Entity its added has a parent (the entity stored in your component).

Required Methods

Retrieves the parent Entity.

Implementors