pub trait ToArc<B>: Sized where
B: Reborrow,
B::Target: AsStorage<Arc<<B as Parametric>::Data>> + AsStorage<Edge<<B as Parametric>::Data>> + Consistent + Parametric, {
fn into_arc(self) -> ArcView<B>;
fn arc(&self) -> ArcView<&B::Target>;
}
sourceimpl<B, M, G> ToArc<B> for ArcView<B> where
B: Reborrow<Target = M>,
M: AsStorage<Arc<G>> + AsStorage<Edge<G>> + Consistent + Parametric<Data = G>,
G: GraphData,
sourceimpl<B, M, G> ToArc<B> for EdgeView<B> where
B: Reborrow<Target = M>,
M: AsStorage<Arc<G>> + AsStorage<Edge<G>> + Consistent + Parametric<Data = G>,
G: GraphData,