Trait fera_graph::props::WithVertexProp [] [src]

pub trait WithVertexProp<T>: WithVertex {
    type VertexProp: VertexPropMutNew<Self, T>;
    fn default_vertex_prop(&self, value: T) -> DefaultVertexPropMut<Self, T>
    where
        T: Clone
, { ... }
fn default_vertex_prop_from_fn<P, F>(&self, fun: F) -> P
    where
        Self: VertexList,
        P: VertexPropMutNew<Self, T>,
        F: FnMut(Vertex<Self>) -> T,
        T: Default + Clone
, { ... } }

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

Associated Types

The vertex property type.

Provided Methods

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

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

Implementations on Foreign Types

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

[src]

[src]

Implementors