Struct sim::make::scenario::PersonSpec [−][src]
pub struct PersonSpec { pub orig_id: Option<OrigPersonID>, pub trips: Vec<IndividTrip>, }
Fields
orig_id: Option<OrigPersonID>
Just used for debugging
trips: Vec<IndividTrip>
There must be continuity between trips: each trip starts at the destination of the previous trip. In the case of borders, the outbound and inbound border may be different. This means that there was some sort of “remote” trip happening outside the map that we don’t simulate.
Implementations
impl PersonSpec
[src]
impl PersonSpec
[src]fn check_schedule(&self) -> Result<()>
[src]
Verify that a person’s trips make sense
fn get_vehicles(
&self,
rng: &mut XorShiftRng
) -> (Vec<VehicleSpec>, Vec<(usize, BuildingID)>, Vec<Option<usize>>)
[src]
&self,
rng: &mut XorShiftRng
) -> (Vec<VehicleSpec>, Vec<(usize, BuildingID)>, Vec<Option<usize>>)
Trait Implementations
impl Clone for PersonSpec
[src]
impl Clone for PersonSpec
[src]fn clone(&self) -> PersonSpec
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'de> Deserialize<'de> for PersonSpec
[src]
impl<'de> Deserialize<'de> for PersonSpec
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Serialize for PersonSpec
[src]
impl Serialize for PersonSpec
[src]Auto Trait Implementations
impl RefUnwindSafe for PersonSpec
impl Send for PersonSpec
impl Sync for PersonSpec
impl Unpin for PersonSpec
impl UnwindSafe for PersonSpec
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>,