IntoNodeId

Trait IntoNodeId 

Source
pub trait IntoNodeId<Idx: RawIndex> {
    // Required method
    fn into_node_index(self) -> VertexId<Idx>;
}
Expand description

a trait for converting a type into a valid VertexId

Required Methods§

Implementors§

Source§

impl<T> IntoNodeId<T> for T
where T: RawIndex + Into<VertexId<T>>,