pub trait VertexId {
    // Required method
    fn get_id(&self) -> Cow<'_, str>;
}
Expand description

The ID of a vertex.

Required Methods§

source

fn get_id(&self) -> Cow<'_, str>

Fetches the ID of a vertex, which must have a string representation.

Implementations on Foreign Types§

source§

impl VertexId for str

source§

fn get_id(&self) -> Cow<'_, str>

Implementors§

source§

impl<T: Display> VertexId for T