pub struct TimedSpawn {
pub tick: u64,
pub origin: StopId,
pub destination: StopId,
pub weight: f64,
}Expand description
A timed rider spawn event within a scenario.
Fields§
§tick: u64Tick at which to spawn this rider.
origin: StopIdOrigin stop for the rider.
destination: StopIdDestination stop for the rider.
weight: f64Weight of the rider.
Trait Implementations§
Source§impl Clone for TimedSpawn
impl Clone for TimedSpawn
Source§fn clone(&self) -> TimedSpawn
fn clone(&self) -> TimedSpawn
Returns a duplicate 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 TimedSpawn
impl Debug for TimedSpawn
Source§impl<'de> Deserialize<'de> for TimedSpawn
impl<'de> Deserialize<'de> for TimedSpawn
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 TimedSpawn
impl RefUnwindSafe for TimedSpawn
impl Send for TimedSpawn
impl Sync for TimedSpawn
impl Unpin for TimedSpawn
impl UnsafeUnpin for TimedSpawn
impl UnwindSafe for TimedSpawn
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