Struct sim::ExternalPerson [−][src]
pub struct ExternalPerson { pub trips: Vec<ExternalTrip>, }
Fields
trips: Vec<ExternalTrip>
Implementations
impl ExternalPerson
[src]
impl ExternalPerson
[src]pub fn import(
map: &Map,
input: Vec<ExternalPerson>,
skip_problems: bool
) -> Result<Vec<PersonSpec>>
[src]
map: &Map,
input: Vec<ExternalPerson>,
skip_problems: bool
) -> Result<Vec<PersonSpec>>
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. If skip_problems
is
true, then those failures are logged; otherwise this panics at the first problem.
Trait Implementations
impl<'de> Deserialize<'de> for ExternalPerson
[src]
impl<'de> Deserialize<'de> for ExternalPerson
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
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> 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>,