Skip to main content

VertexId

Trait VertexId 

Source
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.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl VertexId for str

Source§

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

Implementors§

Source§

impl<T: Display> VertexId for T