Struct hydro_lang::builder::built::BuiltFlow
source · pub struct BuiltFlow<'a> { /* private fields */ }
Implementations§
source§impl<'a> BuiltFlow<'a>
impl<'a> BuiltFlow<'a>
pub fn ir(&self) -> &Vec<HydroLeaf>
pub fn optimize_with( self, f: impl FnOnce(Vec<HydroLeaf>) -> Vec<HydroLeaf>, ) -> Self
pub fn with_default_optimize<D: LocalDeploy<'a>>(self) -> DeployFlow<'a, D>
pub fn with_process<P, D: LocalDeploy<'a>>( self, process: &Process<'_, P>, spec: impl IntoProcessSpec<'a, D>, ) -> DeployFlow<'a, D>
pub fn with_external<P, D: LocalDeploy<'a>>( self, process: &ExternalProcess<'_, P>, spec: impl ExternalSpec<'a, D>, ) -> DeployFlow<'a, D>
pub fn with_cluster<C, D: LocalDeploy<'a>>( self, cluster: &Cluster<'_, C>, spec: impl ClusterSpec<'a, D>, ) -> DeployFlow<'a, D>
pub fn compile<D: Deploy<'a>>( self, env: &D::CompileEnv, ) -> CompiledFlow<'a, D::GraphId>
pub fn compile_no_network<D: LocalDeploy<'a>>( self, ) -> CompiledFlow<'a, D::GraphId>
pub fn deploy<D: Deploy<'a, CompileEnv = ()>>( self, env: &mut D::InstantiateEnv, ) -> DeployResult<'a, D>
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for BuiltFlow<'a>
impl<'a> !RefUnwindSafe for BuiltFlow<'a>
impl<'a> !Send for BuiltFlow<'a>
impl<'a> !Sync for BuiltFlow<'a>
impl<'a> Unpin for BuiltFlow<'a>
impl<'a> !UnwindSafe for BuiltFlow<'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> ⓘ
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 more