Struct map_model::pathfind::vehicles::VehiclePathfinder
source · pub struct VehiclePathfinder {
nodes: NodeMap<Node>,
uber_turns: Vec<UberTurnV2>,
constraints: PathConstraints,
params: RoutingParams,
pub engine: PathfindEngine,
}
Fields§
§nodes: NodeMap<Node>
§uber_turns: Vec<UberTurnV2>
§constraints: PathConstraints
§params: RoutingParams
§engine: PathfindEngine
Implementations§
source§impl VehiclePathfinder
impl VehiclePathfinder
pub fn empty() -> VehiclePathfinder
pub fn new( map: &Map, constraints: PathConstraints, params: &RoutingParams, engine: &CreateEngine<'_> ) -> VehiclePathfinder
pub fn pathfind(&self, req: PathRequest, map: &Map) -> Option<PathV2>
pub fn apply_edits(&mut self, map: &Map)
pub fn all_costs_from( &self, start: Position, map: &Map ) -> HashMap<DirectedRoadID, Duration>
Trait Implementations§
source§impl Clone for VehiclePathfinder
impl Clone for VehiclePathfinder
source§fn clone(&self) -> VehiclePathfinder
fn clone(&self) -> VehiclePathfinder
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<'de> Deserialize<'de> for VehiclePathfinder
impl<'de> Deserialize<'de> for VehiclePathfinder
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl !Freeze for VehiclePathfinder
impl RefUnwindSafe for VehiclePathfinder
impl Send for VehiclePathfinder
impl Sync for VehiclePathfinder
impl Unpin for VehiclePathfinder
impl UnwindSafe for VehiclePathfinder
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