Enum hydro_lang::ir::HydroLeaf
source · pub enum HydroLeaf {
ForEach {
f: DebugExpr,
input: Box<HydroNode>,
},
DestSink {
sink: DebugExpr,
input: Box<HydroNode>,
},
CycleSink {
ident: Ident,
location_kind: LocationId,
input: Box<HydroNode>,
},
}Expand description
An leaf in a Hydro graph, which is an pipeline that doesn’t emit any downstream values. Traversals over the dataflow graph and generating Hydroflow IR start from leaves.
Variants§
Implementations§
source§impl HydroLeaf
impl HydroLeaf
pub fn compile_network<'a, D: Deploy<'a>>( self, compile_env: &D::CompileEnv, seen_tees: &mut SeenTees, processes: &HashMap<usize, D::Process>, clusters: &HashMap<usize, D::Cluster>, externals: &HashMap<usize, D::ExternalProcess>, ) -> HydroLeaf
pub fn connect_network(self, seen_tees: &mut SeenTees) -> HydroLeaf
pub fn transform_children( self, transform: impl FnMut(&mut HydroNode, &mut SeenTees), seen_tees: &mut SeenTees, ) -> HydroLeaf
pub fn emit( &self, graph_builders: &mut BTreeMap<usize, FlatGraphBuilder>, built_tees: &mut HashMap<*const RefCell<HydroNode>, (Ident, usize)>, next_stmt_id: &mut usize, )
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HydroLeaf
impl !RefUnwindSafe for HydroLeaf
impl !Send for HydroLeaf
impl !Sync for HydroLeaf
impl Unpin for HydroLeaf
impl !UnwindSafe for HydroLeaf
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