Trait fera_graph::props::VertexPropMutNew
source · pub trait VertexPropMutNew<G, T>: VertexPropMut<G, T>where
G: WithVertex,{
fn new_vertex_prop(g: &G, value: T) -> Self
where
T: Clone;
}
Expand description
A vertex property that can be created using a graph reference and a value.
Required Methods
sourcefn new_vertex_prop(g: &G, value: T) -> Selfwhere
T: Clone,
fn new_vertex_prop(g: &G, value: T) -> Selfwhere
T: Clone,
Creates a new vertex prop.
This method is rarely called explicitly, it is instead used through
WithVertex::vertex_prop
.