Trait hugr_core::hugr::internal::HugrInternals
source · 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§
Object Safety§
This trait is not object safe.