Trait libreda_db::hierarchy_utils::HierarchyUtil[][src]

pub trait HierarchyUtil: HierarchyBase {
    fn is_top_level_cell(&self, cell: &Self::CellId) -> bool { ... }
fn is_leaf_cell(&self, cell: &Self::CellId) -> bool { ... }
fn each_top_level_cell(&self) -> Box<dyn Iterator<Item = Self::CellId>> { ... } }
Expand description

Non-modifying utility functions for the cell hierarchy.. Import the this trait to use the utility functions all types that implement the HierarchyBase trait.

Provided methods

Check if the cell is a top level cell. This is done by checking that no other cells have an instance of this cell.

Check if the cell is a leaf cell. This is done by checking that this cell contains no other cell instances.

Iterate over all top level cells.

Implementors