pub trait HierarchyView<'a>: RootTagged + Sized {
// Required method
fn try_new(hugr: &'a impl HugrView, root: Node) -> Result<Self, HugrError>;
}
Expand description
A common trait for views of a HUGR hierarchical subgraph.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.