[][src]Struct sim::PersonSpec

pub struct PersonSpec {
    pub orig_id: Option<OrigPersonID>,
    pub origin: TripEndpoint,
    pub trips: Vec<IndividTrip>,
}

Fields

orig_id: Option<OrigPersonID>

Just used for debugging

origin: TripEndpoint

The first trip starts here

trips: Vec<IndividTrip>

Each trip starts at the destination of the previous trip

Implementations

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]

Trait Implementations

impl Clone for PersonSpec[src]

impl Debug for PersonSpec[src]

impl<'de> Deserialize<'de> 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> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> Downcast for T where
    T: Any

impl<T> DowncastSync for T where
    T: Send + Sync + Any

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,