pub struct FlowBuilder<'a> { /* private fields */ }Implementations§
Source§impl<'a> FlowBuilder<'a>
impl<'a> FlowBuilder<'a>
Source§impl<'a> FlowBuilder<'a>
impl<'a> FlowBuilder<'a>
pub fn finalize(self) -> BuiltFlow<'a>
Available on crate feature
build only.pub fn with_default_optimize<D: Deploy<'a>>(self) -> DeployFlow<'a, D>
Available on crate feature
build only.pub fn optimize_with(self, f: impl FnOnce(&mut [HydroRoot])) -> BuiltFlow<'a>
Available on crate feature
build only.pub fn with_process<P, D: Deploy<'a>>( self, process: &Process<'_, P>, spec: impl IntoProcessSpec<'a, D>, ) -> DeployFlow<'a, D>
Available on crate feature
build only.pub fn with_remaining_processes<D: Deploy<'a>, S: IntoProcessSpec<'a, D> + 'a>( self, spec: impl Fn() -> S, ) -> DeployFlow<'a, D>
Available on crate feature
build only.pub fn with_external<P, D: Deploy<'a>>( self, process: &External<'_, P>, spec: impl ExternalSpec<'a, D>, ) -> DeployFlow<'a, D>
Available on crate feature
build only.pub fn with_remaining_externals<D: Deploy<'a>, S: ExternalSpec<'a, D> + 'a>( self, spec: impl Fn() -> S, ) -> DeployFlow<'a, D>
Available on crate feature
build only.pub fn with_cluster<C, D: Deploy<'a>>( self, cluster: &Cluster<'_, C>, spec: impl ClusterSpec<'a, D>, ) -> DeployFlow<'a, D>
Available on crate feature
build only.pub fn with_remaining_clusters<D: Deploy<'a>, S: ClusterSpec<'a, D> + 'a>( self, spec: impl Fn() -> S, ) -> DeployFlow<'a, D>
Available on crate feature
build only.pub fn compile<D: Deploy<'a>>(self) -> CompiledFlow<'a>
Available on crate feature
build only.pub fn deploy<D: Deploy<'a>>( self, env: &mut D::InstantiateEnv, ) -> DeployResult<'a, D>
Available on crate feature
build only.Sourcepub fn sim(self) -> SimFlow<'a>
Available on crate features build and sim only.
pub fn sim(self) -> SimFlow<'a>
build and sim only.Creates a simulation for this builder, which can be used to run deterministic simulations of the Hydro program.
pub fn rewritten_ir_builder<'b>( built: &BuiltFlow<'_>, ) -> RewriteIrFlowBuilder<'b>
Available on crate feature
build only.Trait Implementations§
Auto Trait Implementations§
impl<'a> !Freeze for FlowBuilder<'a>
impl<'a> !RefUnwindSafe for FlowBuilder<'a>
impl<'a> !Send for FlowBuilder<'a>
impl<'a> !Sync for FlowBuilder<'a>
impl<'a> Unpin for FlowBuilder<'a>
impl<'a> !UnwindSafe for FlowBuilder<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.