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§
Sourcefn from_map(
map: &BTreeMap<I, BTreeSet<I>>,
) -> Result<BTreeMap<I, Self>, IndexError>
fn from_map( map: &BTreeMap<I, BTreeSet<I>>, ) -> Result<BTreeMap<I, Self>, IndexError>
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.