Trait DataflowSubContainer

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

Trait implemented by builders of Dataflow container regions of a HUGR

Provided Methods§

Source

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

Set the outputs of the graph and consume the builder, while returning a handle to the parent.

§Errors

This function will return an error if there is an error when setting outputs.

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§