Struct synthpop::scenario::PersonSpec
source · 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§
source§impl PersonSpec
impl PersonSpec
sourcepub fn check_schedule(&self) -> Result<()>
pub fn check_schedule(&self) -> Result<()>
Verify that a person’s trips make sense
Trait Implementations§
source§impl Clone for PersonSpec
impl Clone for PersonSpec
source§fn clone(&self) -> PersonSpec
fn clone(&self) -> PersonSpec
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for PersonSpec
impl Debug for PersonSpec
source§impl<'de> Deserialize<'de> for PersonSpec
impl<'de> Deserialize<'de> for PersonSpec
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for PersonSpec
impl RefUnwindSafe for PersonSpec
impl Send for PersonSpec
impl Sync for PersonSpec
impl Unpin for PersonSpec
impl UnwindSafe for PersonSpec
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more