pub trait NodeResults {
// Required methods
fn creates() -> Vec<TypeKey>;
fn save(self, resources: &mut TypeMap) -> Result<(), GraphError>;
}Expand description
Trait for describing types that are the result of running a node.
When a node runs it may result in the creation of graph edges (ie resources). Graph edges are the resources that other nodes (ie functions) consume.
The NodeResults trait allows the library user to emit tuples of resources
that will then be stored in the graph for downstream nodes to use as input.
Required Methods§
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.