Trait petgraph::graph_impl::IndexType
source · pub unsafe trait IndexType:
Copy
+ Default
+ Hash
+ Ord
+ Debug
+ 'static {
// Required methods
fn new(x: usize) -> Self;
fn index(&self) -> usize;
fn max() -> Self;
}
Expand description
Trait for the unsigned integer type used for node and edge indices.
Marked unsafe
because: the trait must faithfully preseve
and convert index values.
Required Methods§
Object Safety§
This trait is not object safe.