pub trait Parent {
// Required method
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§
Sourcefn parent_entity(&self) -> Entity
fn parent_entity(&self) -> Entity
Retrieves the parent Entity
.