pub trait HugrBuilder: Container {
// Required method
fn finish_hugr(self) -> Result<Hugr, ValidationError<Node>>;
}
Expand description
Types implementing this trait can be used to build complete HUGRs (with varying root node types)
Required Methods§
Sourcefn finish_hugr(self) -> Result<Hugr, ValidationError<Node>>
fn finish_hugr(self) -> Result<Hugr, ValidationError<Node>>
Finish building the HUGR, perform any validation checks and return it.
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.