Struct synthpop::make::generator::SpawnOverTime
source · pub struct SpawnOverTime {
pub num_agents: usize,
pub start_time: Time,
pub stop_time: Time,
pub goal: Option<TripEndpoint>,
pub percent_driving: f64,
pub percent_biking: f64,
pub percent_use_transit: f64,
}
Fields§
§num_agents: usize
§start_time: Time
§stop_time: Time
§goal: Option<TripEndpoint>
§percent_driving: f64
§percent_biking: f64
§percent_use_transit: f64
Implementations§
source§impl SpawnOverTime
impl SpawnOverTime
fn spawn_agent(&self, rng: &mut XorShiftRng, scenario: &mut Scenario, map: &Map)
Trait Implementations§
source§impl Clone for SpawnOverTime
impl Clone for SpawnOverTime
source§fn clone(&self) -> SpawnOverTime
fn clone(&self) -> SpawnOverTime
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 SpawnOverTime
impl Debug for SpawnOverTime
source§impl<'de> Deserialize<'de> for SpawnOverTime
impl<'de> Deserialize<'de> for SpawnOverTime
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 SpawnOverTime
impl RefUnwindSafe for SpawnOverTime
impl Send for SpawnOverTime
impl Sync for SpawnOverTime
impl Unpin for SpawnOverTime
impl UnwindSafe for SpawnOverTime
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