Trait BuildFromGraph

pub trait BuildFromGraph<I>: Sized
where 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§

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§

§

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

Implementors§

§

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