Trait FromMap

Source
pub trait FromMap<I>
where Self: Sized,
{ // Required method fn from_map( map: &BTreeMap<I, BTreeSet<I>>, ) -> Result<BTreeMap<I, Self>, IndexError> where I: Eq + Hash + Clone + Ord; }
Available on crate feature chili only.
Expand description

Constructs a collection of Items from a map (graph)

Required Methods§

Source

fn from_map( map: &BTreeMap<I, BTreeSet<I>>, ) -> Result<BTreeMap<I, Self>, IndexError>
where I: Eq + Hash + Clone + Ord,

SubDomains can be neighboring each other via complicated graphs. An easy way to represent this is by using a BTreeMap. We want to create Barriers which match the specified subdomain indices.

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> FromMap<I> for PhantomData<I>

Source§

fn from_map( map: &BTreeMap<I, BTreeSet<I>>, ) -> Result<BTreeMap<I, Self>, IndexError>
where I: Eq + Hash + Clone + Ord,

Implementors§

Source§

impl<I> FromMap<I> for BarrierSync

Source§

impl<T, I> FromMap<I> for ChannelComm<I, T>
where I: Ord,