[][src]Struct sim::ExternalPerson

pub struct ExternalPerson {
    pub origin: ExternalTripEndpoint,
    pub trips: Vec<ExternalTrip>,
}

Fields

origin: ExternalTripEndpointtrips: Vec<ExternalTrip>

Implementations

impl ExternalPerson[src]

pub fn import(map: &Map, input: Vec<ExternalPerson>) -> Result<Vec<PersonSpec>>[src]

Import external scenario data. The main difference between ExternalPerson and PersonSpec is a way to specify endpoints by a LonLat. This is snapped to the nearest building. If the point is outside of the map boundary, it's snapped to the nearest border (by Euclidean distance -- the network outside the given map isn't known). Failure happens if a point is within the map, but not close enough to any buildings.

Trait Implementations

impl<'de> Deserialize<'de> for ExternalPerson[src]

Auto Trait Implementations

impl RefUnwindSafe for ExternalPerson

impl Send for ExternalPerson

impl Sync for ExternalPerson

impl Unpin for ExternalPerson

impl UnwindSafe for ExternalPerson

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, 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>,