pub trait SubContainer: Container {
type ContainerHandle;
// Required method
fn finish_sub_container(self) -> Result<Self::ContainerHandle, BuildError>;
}
Expand description
Types implementing this trait build a container graph region by borrowing a HUGR
Required Associated Types§
Sourcetype ContainerHandle
type ContainerHandle
A handle to the finished container node, typically returned when the child graph has been finished.
Required Methods§
Sourcefn finish_sub_container(self) -> Result<Self::ContainerHandle, BuildError>
fn finish_sub_container(self) -> Result<Self::ContainerHandle, BuildError>
Consume the container builder and return the handle, may perform some checks before finishing.
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.