Enum map_model::PathfinderCaching [−][src]
pub enum PathfinderCaching {
NoCache,
CacheDijkstra,
CacheCH,
}
Expand description
When pathfinding with different RoutingParams
is done, a temporary pathfinder must be
created. This specifies what type of pathfinder and whether to cache it.
clear_custom_pathfinder_cache
can be used to later clean up any cached pathfinders.
Variants
NoCache
Create a fast-to-build but slow-to-use Dijkstra-based pathfinder and don’t cache it
CacheDijkstra
Create a fast-to-build but slow-to-use Dijkstra-based pathfinder and cache it
CacheCH
Create a slow-to-build but fast-to-use contraction hierarchy-based pathfinder and cache it
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for PathfinderCaching
impl Send for PathfinderCaching
impl Sync for PathfinderCaching
impl Unpin for PathfinderCaching
impl UnwindSafe for PathfinderCaching
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self