pub struct SolverHints {
pub stiffness: Option<Stiffness>,
pub accuracy: Option<Accuracy>,
pub prefer_implicit: bool,
pub detect_stiffness: bool,
}Expand description
Solver selection hints.
Fields§
§stiffness: Option<Stiffness>Problem stiffness
accuracy: Option<Accuracy>Accuracy requirements
prefer_implicit: boolPrefer implicit methods (for conservation)
detect_stiffness: boolEnable stiffness detection
Implementations§
Source§impl SolverHints
impl SolverHints
Sourcepub fn detect_stiffness(self, detect: bool) -> Self
pub fn detect_stiffness(self, detect: bool) -> Self
Enable/disable stiffness detection.
Trait Implementations§
Source§impl Clone for SolverHints
impl Clone for SolverHints
Source§fn clone(&self) -> SolverHints
fn clone(&self) -> SolverHints
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SolverHints
impl Debug for SolverHints
Source§impl Default for SolverHints
impl Default for SolverHints
Source§fn default() -> SolverHints
fn default() -> SolverHints
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SolverHints
impl RefUnwindSafe for SolverHints
impl Send for SolverHints
impl Sync for SolverHints
impl Unpin for SolverHints
impl UnsafeUnpin for SolverHints
impl UnwindSafe for SolverHints
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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