pub trait DijkstraWeight:
Ord
+ Add<Output = Self>
+ Sized
+ Clone {
// Required methods
fn infinity() -> Self;
fn zero() -> Self;
}
Expand description
A weight-type usable in Dijkstra’s algorithm.
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.