Struct sim::router::Router [−][src]
Fields
path: Path
Front is always the current step
goal: Goal
owner: CarID
Implementations
impl Router
[src]
pub fn end_at_border(
owner: CarID,
path: Path,
end_dist: Distance,
i: IntersectionID
) -> Router
[src]
owner: CarID,
path: Path,
end_dist: Distance,
i: IntersectionID
) -> Router
pub fn vanish_bus(owner: CarID, start: Position, map: &Map) -> Router
[src]
pub fn park_near(owner: CarID, path: Path, bldg: BuildingID) -> Router
[src]
pub fn bike_then_stop(owner: CarID, path: Path, goal: SidewalkSpot) -> Router
[src]
pub fn follow_bus_route(owner: CarID, path: Path) -> Router
[src]
pub fn head(&self) -> Traversable
[src]
pub fn next(&self) -> Traversable
[src]
pub fn maybe_next(&self) -> Option<Traversable>
[src]
pub fn last_step(&self) -> bool
[src]
pub fn get_end_dist(&self) -> Distance
[src]
pub fn get_path(&self) -> &Path
[src]
pub fn advance(
&mut self,
vehicle: &Vehicle,
parking: &ParkingSimState,
map: &Map,
trip_and_person: Option<(TripID, PersonID)>,
events: &mut Vec<Event>
) -> Traversable
[src]
&mut self,
vehicle: &Vehicle,
parking: &ParkingSimState,
map: &Map,
trip_and_person: Option<(TripID, PersonID)>,
events: &mut Vec<Event>
) -> Traversable
Returns the step just finished
pub fn maybe_handle_end(
&mut self,
front: Distance,
vehicle: &Vehicle,
parking: &ParkingSimState,
map: &Map,
trip_and_person: Option<(TripID, PersonID)>,
events: &mut Vec<Event>
) -> Option<ActionAtEnd>
[src]
&mut self,
front: Distance,
vehicle: &Vehicle,
parking: &ParkingSimState,
map: &Map,
trip_and_person: Option<(TripID, PersonID)>,
events: &mut Vec<Event>
) -> Option<ActionAtEnd>
Called when the car is Queued at the last step, or when they initially advance to the last step.
pub fn opportunistically_lanechange(
&mut self,
queues: &HashMap<Traversable, Queue>,
map: &Map,
handle_uber_turns: bool
)
[src]
&mut self,
queues: &HashMap<Traversable, Queue>,
map: &Map,
handle_uber_turns: bool
)
pub fn is_parking(&self) -> bool
[src]
pub fn get_parking_spot_goal(&self) -> Option<&ParkingSpot>
[src]
Trait Implementations
impl Clone for Router
[src]
impl Debug for Router
[src]
impl<'de> Deserialize<'de> for Router
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl PartialEq<Router> for Router
[src]
impl Serialize for Router
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralPartialEq for Router
[src]
Auto Trait Implementations
impl RefUnwindSafe for Router
impl Send for Router
impl Sync for Router
impl Unpin for Router
impl UnwindSafe for Router
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> Downcast for T where
T: Any,
T: Any,
pub fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
pub fn as_any(&self) -> &(dyn Any + 'static)
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
impl<T> DowncastSync for T where
T: Any + Send + Sync,
T: Any + Send + Sync,
impl<T> From<T> 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, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,