Struct map_model::pathfind::vehicles::VehiclePathfinder [−][src]
pub struct VehiclePathfinder { graph: FastGraph, nodes: NodeMap<Node>, uber_turns: Vec<UberTurnV2>, constraints: PathConstraints, path_calc: ThreadLocal<RefCell<PathCalculator>>, }
Fields
graph: FastGraph
nodes: NodeMap<Node>
uber_turns: Vec<UberTurnV2>
constraints: PathConstraints
path_calc: ThreadLocal<RefCell<PathCalculator>>
Implementations
impl VehiclePathfinder
[src]
impl VehiclePathfinder
[src]pub fn new(
map: &Map,
constraints: PathConstraints,
seed: Option<&VehiclePathfinder>
) -> VehiclePathfinder
[src]
map: &Map,
constraints: PathConstraints,
seed: Option<&VehiclePathfinder>
) -> VehiclePathfinder
pub fn pathfind(&self, req: PathRequest, map: &Map) -> Option<PathV2>
[src]
pub fn apply_edits(&mut self, map: &Map)
[src]
Trait Implementations
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>,