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.
§Safety
Marked unsafe
because: the trait must faithfully preserve
and convert index values.
Required Methods§
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.