Trait fera_graph::props::EdgePropMutNew
source · pub trait EdgePropMutNew<G, T>: EdgePropMut<G, T>where
G: WithEdge,{
fn new_edge_prop(g: &G, value: T) -> Self
where
T: Clone;
}
Expand description
An edge property that can be read/write using indexing operation.
Required Methods
sourcefn new_edge_prop(g: &G, value: T) -> Selfwhere
T: Clone,
fn new_edge_prop(g: &G, value: T) -> Selfwhere
T: Clone,
Creates a new edge prop.
This method is rarely called explicitly, it is instead used through
WithEdge::edge_prop
.