EdgePropMutNew

Trait EdgePropMutNew 

Source
pub trait EdgePropMutNew<G, T>: EdgePropMut<G, T>
where G: WithEdge,
{ // Required method 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§

Source

fn new_edge_prop(g: &G, value: T) -> Self
where T: Clone,

Creates a new edge prop.

This method is rarely called explicitly, it is instead used through WithEdge::edge_prop.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<G, D, T> EdgePropMutNew<G, T> for DelegateEdgeProp<D, T>
where G: WithEdge<Edge = Edge<D>, OptionEdge = OptionEdge<D>> + AsRef<D>, D: WithEdgeProp<T>,

Source§

impl<G, T> EdgePropMutNew<G, T> for IgnoreWriteProp<T>
where G: WithEdge, T: Clone,

Source§

impl<G, T, S> EdgePropMutNew<G, T> for HashMapProp<Edge<G>, T, S>
where G: WithEdge, T: Clone, S: BuildHasher + Default,

Source§

impl<T, G> EdgePropMutNew<G, T> for ArrayProp<EdgeIndexProp<G>, Vec<T>>