pub struct TimestepConfig {
pub mode: TimestepMode,
pub dt: f64,
pub min_dt: f64,
pub max_dt: f64,
pub tolerance: f64,
}Expand description
Timestep configuration.
Fields§
§mode: TimestepModeTimestep mode.
dt: f64Fixed timestep in seconds.
min_dt: f64Minimum timestep for adaptive mode.
max_dt: f64Maximum timestep for adaptive mode.
tolerance: f64Tolerance for adaptive mode.
Trait Implementations§
Source§impl Clone for TimestepConfig
impl Clone for TimestepConfig
Source§fn clone(&self) -> TimestepConfig
fn clone(&self) -> TimestepConfig
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 TimestepConfig
impl Debug for TimestepConfig
Source§impl Default for TimestepConfig
impl Default for TimestepConfig
Source§impl<'de> Deserialize<'de> for TimestepConfig
impl<'de> Deserialize<'de> for TimestepConfig
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
Source§impl Serialize for TimestepConfig
impl Serialize for TimestepConfig
Source§impl Validate for TimestepConfig
impl Validate for TimestepConfig
Source§impl<'v_a> ValidateArgs<'v_a> for TimestepConfig
impl<'v_a> ValidateArgs<'v_a> for TimestepConfig
Auto Trait Implementations§
impl Freeze for TimestepConfig
impl RefUnwindSafe for TimestepConfig
impl Send for TimestepConfig
impl Sync for TimestepConfig
impl Unpin for TimestepConfig
impl UnsafeUnpin for TimestepConfig
impl UnwindSafe for TimestepConfig
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