pub struct Hierarchy { /* private fields */ }
Implementations§
source§impl Hierarchy
impl Hierarchy
pub fn roots(&self) -> impl Iterator<Item = Entity>
pub fn parents(&self) -> impl Iterator<Item = Entity>
pub fn childs(&self) -> impl Iterator<Item = Entity>
pub fn parent(&self, child: Entity) -> Option<Entity>
pub fn children(&self, parent: Entity) -> Option<impl Iterator<Item = Entity>>
pub fn entity_by_name(&self, name: &str) -> Option<Entity>
pub fn name_by_entity(&self, entity: Entity) -> Option<&str>
pub fn find(&self, root: Option<Entity>, path: &str) -> Option<Entity>
pub fn iter(&self) -> HierarchyIter<'_> ⓘ
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Hierarchy
impl Send for Hierarchy
impl Sync for Hierarchy
impl Unpin for Hierarchy
impl UnwindSafe for Hierarchy
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
§impl<T> Initialize for Twhere
T: Default,
impl<T> Initialize for Twhere T: Default,
fn initialize(&mut self)
§unsafe fn initialize_raw(data: *mut ())
unsafe fn initialize_raw(data: *mut ())
Safety Read more