Trait VertexReference

Source
pub trait VertexReference<'graph, Graph>: Debug
where Graph: Graph,
{ // Required methods fn id(&self) -> Graph::VertexId; fn weight(&self) -> &Graph::Vertex; fn project<'reference, T: Project<'reference, <Graph as Graph>::Vertex>>( &'reference self, ) -> Option<T>; }

Required Methods§

Source

fn id(&self) -> Graph::VertexId

Return the ID of the vertex

Source

fn weight(&self) -> &Graph::Vertex

Return the weight of the vertex

Source

fn project<'reference, T: Project<'reference, <Graph as Graph>::Vertex>>( &'reference self, ) -> Option<T>

Project the element to a mutation safe struct representing a single labelled vertex.

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§