Trait FromMap

pub trait FromMap<I>: 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§

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§

§

impl<I> FromMap<I> for PhantomData<I>

§

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

Implementors§

§

impl<I> FromMap<I> for BarrierSync

§

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