Struct sim::Person [−][src]
pub struct Person { pub id: PersonID, pub orig_id: Option<OrigPersonID>, pub trips: Vec<TripID>, pub state: PersonState, pub ped: PedestrianID, pub ped_speed: Speed, pub vehicles: Vec<Vehicle>, delayed_trips: Vec<(TripID, StartTripArgs)>, on_bus: Option<CarID>, }
Fields
id: PersonID
orig_id: Option<OrigPersonID>
trips: Vec<TripID>
state: PersonState
ped: PedestrianID
ped_speed: Speed
vehicles: Vec<Vehicle>
Both cars and bikes
delayed_trips: Vec<(TripID, StartTripArgs)>
on_bus: Option<CarID>
Implementations
impl Person
[src]
impl Person
[src]fn get_vehicle(&self, id: CarID) -> Vehicle
[src]
Trait Implementations
impl<'de> Deserialize<'de> for Person
[src]
impl<'de> Deserialize<'de> for Person
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl RefUnwindSafe for Person
impl Send for Person
impl Sync for Person
impl Unpin for Person
impl UnwindSafe for Person
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>,