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 Freeze for Hierarchy
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