pub struct FixedRateSample {
pub scheduled_simulation_time_seconds: f64,
pub offset_within_update_seconds: f64,
pub elapsed_since_previous_sample_seconds: f64,
}Expand description
One scheduled sample within an advance call.
Fields§
§scheduled_simulation_time_seconds: f64The simulation time the sample was scheduled for, on the schedule’s own clock (zero at construction).
offset_within_update_seconds: f64How far into this update the sample falls, from the update’s start — what an agent interpolates its view of the world by.
elapsed_since_previous_sample_seconds: f64Time since the previous sample, or since construction or the end of the
last skip_elapsed for the first
sample after either. What an agent decays its senses by.
Trait Implementations§
Source§impl Clone for FixedRateSample
impl Clone for FixedRateSample
impl Copy for FixedRateSample
Source§impl Debug for FixedRateSample
impl Debug for FixedRateSample
Source§impl PartialEq for FixedRateSample
impl PartialEq for FixedRateSample
impl StructuralPartialEq for FixedRateSample
Auto Trait Implementations§
impl Freeze for FixedRateSample
impl RefUnwindSafe for FixedRateSample
impl Send for FixedRateSample
impl Sync for FixedRateSample
impl Unpin for FixedRateSample
impl UnsafeUnpin for FixedRateSample
impl UnwindSafe for FixedRateSample
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