Enum map_model::pathfind::pathfinder::PathfinderCaching
source · 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.
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§
source§impl Clone for PathfinderCaching
impl Clone for PathfinderCaching
source§fn clone(&self) -> PathfinderCaching
fn clone(&self) -> PathfinderCaching
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl PartialEq for PathfinderCaching
impl PartialEq for PathfinderCaching
source§fn eq(&self, other: &PathfinderCaching) -> bool
fn eq(&self, other: &PathfinderCaching) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for PathfinderCaching
impl StructuralPartialEq for PathfinderCaching
Auto Trait Implementations§
impl Freeze for PathfinderCaching
impl RefUnwindSafe for PathfinderCaching
impl Send for PathfinderCaching
impl Sync for PathfinderCaching
impl Unpin for PathfinderCaching
impl UnwindSafe for PathfinderCaching
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more