pub trait HugrInternals {
type Portgraph<'p>: LinkView + Clone + 'p
where Self: 'p;
// Required methods
fn portgraph(&self) -> Self::Portgraph<'_>;
fn base_hugr(&self) -> &Hugr;
fn root_node(&self) -> Node;
}
Expand description
Trait for accessing the internals of a Hugr(View).
Specifically, this trait provides access to the underlying portgraph view.
Required Associated Types§
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.