Enum sim::trips::TripLeg [−][src]
pub(crate) enum TripLeg { Walk(SidewalkSpot), Drive(CarID, DrivingGoal), RideBus(BusRouteID, Option<BusStopID>), }
These don’t specify where the leg starts, since it might be unknown – like when we drive and don’t know where we’ll wind up parking.
Variants
Walk(SidewalkSpot)
Drive(CarID, DrivingGoal)
A person may own many vehicles, so specify which they use
RideBus(BusRouteID, Option<BusStopID>)
Maybe get off at a stop, maybe ride off-map
Trait Implementations
impl<'de> Deserialize<'de> for TripLeg
[src]
impl<'de> Deserialize<'de> for TripLeg
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl StructuralPartialEq for TripLeg
[src]
Auto Trait Implementations
impl RefUnwindSafe for TripLeg
impl Send for TripLeg
impl Sync for TripLeg
impl Unpin for TripLeg
impl UnwindSafe for TripLeg
Blanket Implementations
impl<T> Downcast for T where
T: Any,
impl<T> Downcast for T where
T: Any,
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>,