pub trait PriorityQueueElement:
Ord
+ Copy
+ Sized {
type Point;
type Dist: Add<Output = Self::Dist>;
// Required methods
fn init(_: Self::Point, _: Self::Dist) -> Self;
fn point(&self) -> Self::Point;
fn dist(&self) -> Self::Dist;
}Expand description
Element of a priority queue.
Required Associated Types§
Required Methods§
fn init(_: Self::Point, _: Self::Dist) -> Self
fn point(&self) -> Self::Point
fn dist(&self) -> Self::Dist
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.