Edges

Trait Edges 

Source
pub trait Edges<T, Id> {
    // Required method
    fn iter_edges(&self) -> impl Iterator<Item = ((Id, Id), T)>;
}
Expand description

Collection of edges for the layout

Required Methods§

Source

fn iter_edges(&self) -> impl Iterator<Item = ((Id, Id), T)>

Create an iterator through the edges ((node_1, node_2), weight)

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.

Implementors§

Source§

impl<T: Clone, Id: Clone> Edges<T, Id> for EdgeBTreeMap<T, Id>

Source§

impl<T: Clone, Id: Clone> Edges<T, Id> for EdgeHashMap<T, Id>

Source§

impl<T: Clone, Id: Clone> Edges<T, Id> for EdgeVec<T, Id>