AStarCost

Trait AStarCost 

Source
pub trait AStarCost:
    Add<Self, Output = Self>
    + CheckedAdd
    + Copy
    + Eq
    + Sized
    + Ord
    + Debug { }
Expand description

Helper trait for defining how we use generic costs in A*, allowing users to bring their own costs without being locked into e.g. u32.

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.

Implementors§

Source§

impl<T> AStarCost for T
where T: Add<Self, Output = Self> + CheckedAdd + Copy + Eq + Sized + Ord + Debug,