Struct fastsim_core::cycle::PassingInfo
source · pub struct PassingInfo {
pub has_collision: bool,
pub idx: usize,
pub num_steps: usize,
pub start_distance_m: f64,
pub distance_m: f64,
pub start_speed_m_per_s: f64,
pub speed_m_per_s: f64,
pub time_step_duration_s: f64,
}Fields§
§has_collision: boolTrue if first cycle passes the second
idx: usizethe index where first cycle passes the second
num_steps: usizethe number of time-steps until idx from i
start_distance_m: f64the starting distance of the first cycle at i
distance_m: f64the distance (m) traveled of the second cycle when first passes
start_speed_m_per_s: f64the starting speed (m/s) of the first cycle at i
speed_m_per_s: f64the speed (m/s) of the second cycle when first passes
time_step_duration_s: f64the time step duration throught the passing investigation
Auto Trait Implementations§
impl Freeze for PassingInfo
impl RefUnwindSafe for PassingInfo
impl Send for PassingInfo
impl Sync for PassingInfo
impl Unpin for PassingInfo
impl UnwindSafe for PassingInfo
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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more