Struct popdat::od::Zone [−][src]
struct Zone { polygon: Polygon, pct_overlap: f64, homes: Vec<(BuildingID, usize)>, workplaces: Vec<(BuildingID, usize)>, borders: MapBorders, }
Fields
polygon: Polygon
pct_overlap: f64
homes: Vec<(BuildingID, usize)>
workplaces: Vec<(BuildingID, usize)>
borders: MapBorders
Implementations
impl Zone
[src]
impl Zone
[src]fn pick_home(
&self,
mode: TripMode,
map: &Map,
rng: &mut XorShiftRng
) -> Option<(TripEndpoint, TripEndpoint)>
[src]
&self,
mode: TripMode,
map: &Map,
rng: &mut XorShiftRng
) -> Option<(TripEndpoint, TripEndpoint)>
Returns endpoints to (leave home, goto home). These’re usually the same, except in some cases of border trips using divided one-ways.
fn pick_workplace(
&self,
mode: TripMode,
map: &Map,
rng: &mut XorShiftRng
) -> Option<(TripEndpoint, TripEndpoint)>
[src]
&self,
mode: TripMode,
map: &Map,
rng: &mut XorShiftRng
) -> Option<(TripEndpoint, TripEndpoint)>
Returns endpoints to (leave work, goto work). These’re usually the same, except in some cases of border trips using divided one-ways.
fn pick_borders(
&self,
mode: TripMode,
map: &Map,
rng: &mut XorShiftRng
) -> Option<(TripEndpoint, TripEndpoint)>
[src]
&self,
mode: TripMode,
map: &Map,
rng: &mut XorShiftRng
) -> Option<(TripEndpoint, TripEndpoint)>
Auto Trait Implementations
impl RefUnwindSafe for Zone
impl Send for Zone
impl Sync for Zone
impl Unpin for Zone
impl UnwindSafe for Zone
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>,