#[non_exhaustive]pub enum Method {
DormandPrince54(Adaptive),
Rk4 {
step_s: f64,
},
}Expand description
The integration method.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
DormandPrince54(Adaptive)
Adaptive Dormand–Prince 5(4) with error control and fourth-order dense output.
Rk4
Classical RK4 with a fixed step, shortened only to land on a stop time or an event.
Implementations§
Source§impl Method
impl Method
Sourcepub fn validate(&self) -> Result<(), SettingsError>
pub fn validate(&self) -> Result<(), SettingsError>
Checks that tolerances and steps are finite and positive.
§Errors
SettingsError naming the first bad setting.
Trait Implementations§
impl Copy for Method
Source§impl<'de> Deserialize<'de> for Method
impl<'de> Deserialize<'de> for Method
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
impl StructuralPartialEq for Method
Auto Trait Implementations§
impl Freeze for Method
impl RefUnwindSafe for Method
impl Send for Method
impl Sync for Method
impl Unpin for Method
impl UnsafeUnpin for Method
impl UnwindSafe for Method
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