Trait fera_graph::props::WithEdgeProp [] [src]

pub trait WithEdgeProp<T>: WithEdge {
    type EdgeProp: EdgePropMutNew<Self, T>;
    fn default_edge_prop(&self, value: T) -> DefaultEdgePropMut<Self, T>
    where
        T: Clone
, { ... }
fn default_edge_prop_from_fn<P, F>(&self, fun: F) -> P
    where
        Self: EdgeList,
        P: EdgePropMutNew<Self, T>,
        F: FnMut(Edge<Self>) -> T,
        T: Default + Clone
, { ... } }

A graph that has a default edge property type, that is, has a default implementation to associated values with edges.

Associated Types

Provided Methods

Creates a new default edge property where the initial value associated with each edge is value.

Creates a new default edge property where the initial value associated with each edge e is produced by fun(e).

Implementations on Foreign Types

impl<'a, G: WithEdgeProp<T>, T> WithEdgeProp<T> for &'a G
[src]

[src]

[src]

Implementors