pub trait HyperGraphIterEdge<N, E, A>: HyperGraph<N, E, A>where
A: GraphProps,{
type Surfaces<'a>: Iterator<Item = (&'a EdgeId<A::Ix>, &'a Self::Edge<E>)>
where Self: 'a,
<Self as RawHyperGraph<A>>::Edge<E>: 'a;
type Edges<'a>: Iterator<Item = &'a EdgeId<A::Ix>>
where Self: 'a;
// Required methods
fn iter_surfaces(&self) -> Self::Surfaces<'_>;
fn edges(&self) -> Self::Edges<'_>;
}
Expand description
The HyperGraphIterEdge
trait extends the HyperGraph
trait to provide iterators over
the edges in the hypergraph.
Required Associated Types§
type Surfaces<'a>: Iterator<Item = (&'a EdgeId<A::Ix>, &'a Self::Edge<E>)> where Self: 'a, <Self as RawHyperGraph<A>>::Edge<E>: 'a
type Edges<'a>: Iterator<Item = &'a EdgeId<A::Ix>> where Self: 'a
Required Methods§
Sourcefn iter_surfaces(&self) -> Self::Surfaces<'_>
fn iter_surfaces(&self) -> Self::Surfaces<'_>
returns an iterator over the edges of the graph
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.