Struct map_model::pathfind::vehicles::VehiclePathfinder [−][src]
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
impl VehiclePathfinder
[src]
impl VehiclePathfinder
[src]pub fn empty() -> VehiclePathfinder
[src]
pub fn new(
map: &Map,
constraints: PathConstraints,
params: &RoutingParams,
engine: &CreateEngine<'_>
) -> VehiclePathfinder
[src]
map: &Map,
constraints: PathConstraints,
params: &RoutingParams,
engine: &CreateEngine<'_>
) -> VehiclePathfinder
pub fn pathfind(&self, req: PathRequest, map: &Map) -> Option<PathV2>
[src]
pub fn apply_edits(&mut self, map: &Map)
[src]
pub fn all_costs_from(
&self,
start: Position,
map: &Map
) -> HashMap<DirectedRoadID, Duration>
[src]
&self,
start: Position,
map: &Map
) -> HashMap<DirectedRoadID, Duration>
Trait Implementations
impl Clone for VehiclePathfinder
[src]
impl Clone for VehiclePathfinder
[src]fn clone(&self) -> VehiclePathfinder
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'de> Deserialize<'de> for VehiclePathfinder
[src]
impl<'de> Deserialize<'de> for VehiclePathfinder
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Serialize for VehiclePathfinder
[src]
impl Serialize for VehiclePathfinder
[src]Auto Trait Implementations
impl RefUnwindSafe for VehiclePathfinder
impl Send for VehiclePathfinder
impl Sync for VehiclePathfinder
impl Unpin for VehiclePathfinder
impl UnwindSafe for VehiclePathfinder
Blanket Implementations
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
pub fn vzip(self) -> V
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,