pub struct QuadOptions<T: Float> {
pub abs_tol: T,
pub rel_tol: T,
pub max_subdivisions: usize,
}Expand description
Options controlling numerical integration.
§Examples
let opts = QuadOptions::<f64>::default();
assert!(opts.abs_tol < 1e-5);Fields§
§abs_tol: TAbsolute error tolerance.
rel_tol: TRelative error tolerance.
max_subdivisions: usizeMaximum number of subdivisions (for adaptive methods).
Trait Implementations§
Source§impl<T: Clone + Float> Clone for QuadOptions<T>
impl<T: Clone + Float> Clone for QuadOptions<T>
Source§fn clone(&self) -> QuadOptions<T>
fn clone(&self) -> QuadOptions<T>
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 moreAuto Trait Implementations§
impl<T> Freeze for QuadOptions<T>where
T: Freeze,
impl<T> RefUnwindSafe for QuadOptions<T>where
T: RefUnwindSafe,
impl<T> Send for QuadOptions<T>
impl<T> Sync for QuadOptions<T>
impl<T> Unpin for QuadOptions<T>where
T: Unpin,
impl<T> UnsafeUnpin for QuadOptions<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for QuadOptions<T>where
T: UnwindSafe,
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