Trait BuildFromGraph

Source
pub trait BuildFromGraph<I>
where Self: Sized, I: Clone + Eq + Hash + Ord,
{ // 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§

Source

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.

Implementations on Foreign Types§

Source§

impl<I> BuildFromGraph<I> for PhantomData<I>
where Self: Sized, I: Clone + Eq + Hash + Ord,

Implementors§

Source§

impl<I> BuildFromGraph<I> for BarrierSync
where I: Clone + Eq + Hash + Ord,