Trait BuildFromGraph
pub trait BuildFromGraph<I>: Sized{
// Required method
fn build_from_graph(
graph: UDGraph<I>,
) -> Result<BTreeMap<I, Self>, IndexError>;
}
Available on crate feature
chili
only.Expand description
Construct a BTreeMap of the type from a graph
The types should be connected according to the connections specified in the graph. Afterwards, this BTreeMap can over multiple threads and used since all components are connected according the the initial graph.
Required Methods§
fn build_from_graph(graph: UDGraph<I>) -> Result<BTreeMap<I, Self>, IndexError>
fn build_from_graph(graph: UDGraph<I>) -> Result<BTreeMap<I, Self>, IndexError>
Builds the BTreeMap
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.