Struct ginger::rootfinding::Options
source · pub struct Options {
pub max_iters: usize,
pub tolerance: f64,
pub tol_ind: f64,
}Expand description
The below code defines a struct named Options with three fields: max_iters, tolerance, and tol_ind.
Properties:
max_iters: Themax_itersproperty represents the maximum number of iterations allowed for a certain algorithm or process. It is of typeusize, which means it can only hold non-negative integer values.tolerance: Thetoleranceproperty is a floating-point number that represents the tolerance for convergence in an algorithm. It is used to determine when the algorithm has reached a satisfactory solution.tol_ind: Thetol_indproperty in theOptionsstruct represents the tolerance for individual values. It is a floating-point number (f64) that determines the acceptable difference between the expected value and the actual value for each element in a calculation or comparison.
Fields§
§max_iters: usize§tolerance: f64§tol_ind: f64Trait Implementations§
source§impl Default for Options
impl Default for Options
The below code is implementing the Default trait for the Options struct in Rust. The Default
trait provides a default value for a type, which can be used when creating an instance of the type
without specifying any values. In this case, the default function is defined to return an instance
of the Options struct with default values for the max_iters, tolerance, and tol_ind fields.
Auto Trait Implementations§
impl Freeze for Options
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnwindSafe for Options
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