pub struct Node {
pub name: Option<String>,
pub kind: NodeKind,
pub constant_value: Option<GA3>,
}Expand description
A node in the dataflow graph.
Fields§
§name: Option<String>Node name (for debugging and lookup)
kind: NodeKindThe kind of computation this node performs
constant_value: Option<GA3>Optional constant value (for constant folding)
Implementations§
Source§impl Node
impl Node
Sourcepub fn projection(
name: impl Into<String>,
projection_type: impl Into<String>,
) -> Self
pub fn projection( name: impl Into<String>, projection_type: impl Into<String>, ) -> Self
Create a projection node (state -> value).
Sourcepub fn transform(name: impl Into<String>, transform_type: TransformType) -> Self
pub fn transform(name: impl Into<String>, transform_type: TransformType) -> Self
Create a transform node (geometric operation).
Sourcepub fn sink(name: impl Into<String>, target_property: impl Into<String>) -> Self
pub fn sink(name: impl Into<String>, target_property: impl Into<String>) -> Self
Create a sink node (output to DOM).
Sourcepub fn combine(name: impl Into<String>, combiner: CombinerType) -> Self
pub fn combine(name: impl Into<String>, combiner: CombinerType) -> Self
Create a combine node (multiple inputs).
Sourcepub fn conditional(name: impl Into<String>) -> Self
pub fn conditional(name: impl Into<String>) -> Self
Create a conditional node.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Node
impl RefUnwindSafe for Node
impl Send for Node
impl Sync for Node
impl Unpin for Node
impl UnsafeUnpin for Node
impl UnwindSafe for Node
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