Enum sim::mechanics::walking::PedState [−][src]
enum PedState { Crossing(DistanceInterval, TimeInterval), WaitingToTurn(Distance, Time), LeavingBuilding(BuildingID, TimeInterval), EnteringBuilding(BuildingID, TimeInterval), LeavingParkingLot(ParkingLotID, TimeInterval), EnteringParkingLot(ParkingLotID, TimeInterval), StartingToBike(SidewalkSpot, Line, TimeInterval), FinishingBiking(SidewalkSpot, Line, TimeInterval), WaitingForBus(BusRouteID, Time), }
Variants
Crossing(DistanceInterval, TimeInterval)
The Distance is either 0 or the current traversable’s length. The Time is blocked_since.
LeavingBuilding(BuildingID, TimeInterval)
EnteringBuilding(BuildingID, TimeInterval)
LeavingParkingLot(ParkingLotID, TimeInterval)
EnteringParkingLot(ParkingLotID, TimeInterval)
StartingToBike(SidewalkSpot, Line, TimeInterval)
FinishingBiking(SidewalkSpot, Line, TimeInterval)
WaitingForBus(BusRouteID, Time)
Implementations
impl PedState
[src]
impl PedState
[src]fn get_end_time(&self) -> Time
[src]
fn time_spent_waiting(&self, now: Time) -> Duration
[src]
Trait Implementations
impl<'de> Deserialize<'de> for PedState
[src]
impl<'de> Deserialize<'de> for PedState
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl RefUnwindSafe for PedState
impl Send for PedState
impl Sync for PedState
impl Unpin for PedState
impl UnwindSafe for PedState
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>,