Trait fera_graph::props::VertexPropMutNew
[−]
[src]
pub trait VertexPropMutNew<G, T>: VertexPropMut<G, T> where
G: WithVertex, { fn new_vertex_prop(g: &G, value: T) -> Self
where
T: Clone; }
A vertex property that can be created using a graph reference and a value.
Required Methods
fn new_vertex_prop(g: &G, value: T) -> Self where
T: Clone,
T: Clone,
Creates a new vertex prop.
This method is rarely called explicitly, it is instead used through
WithVertex::vertex_prop
.
Implementors
impl<T, G> VertexPropMutNew<G, T> for ArrayProp<VertexIndexProp<G>, Vec<T>> where
G: VertexList + WithVertexIndexProp,impl<G, D, T> VertexPropMutNew<G, T> for DelegateVertexProp<D, T> where
G: WithVertex<Vertex = Vertex<D>, OptionVertex = OptionVertex<D>> + AsRef<D>,
D: WithVertexProp<T>,impl<G, T, S> VertexPropMutNew<G, T> for HashMapProp<Vertex<G>, T, S> where
G: WithVertex,
T: Clone,
S: BuildHasher + Default,impl<G, T> VertexPropMutNew<G, T> for IgnoreWriteProp<T> where
G: WithVertex,
T: Clone,