Trait DataflowHugr

Source
pub trait DataflowHugr: HugrBuilder + Dataflow {
    // Provided method
    fn finish_hugr_with_outputs(
        self,
        outputs: impl IntoIterator<Item = Wire>,
    ) -> Result<Hugr, BuildError>
       where Self: Sized { ... }
}
Expand description

Trait implemented by builders of Dataflow Hugrs

Provided Methods§

Source

fn finish_hugr_with_outputs( self, outputs: impl IntoIterator<Item = Wire>, ) -> Result<Hugr, BuildError>
where Self: Sized,

Set outputs of dataflow HUGR and return validated HUGR

§Errors
  • if there is an error when setting outputs
  • if the Hugr does not validate

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.

Implementors§