pub enum Budget {
Fast,
Balanced,
Precise,
}Expand description
Working-precision preset requested by the caller.
A budget selects only the working precision. It deliberately does not
change method defaults, tolerances, or convergence criteria: different
algorithms have different conditioning, and a tighter requested tolerance
does not by itself produce a more accurate answer. Iterative methods report
their own requested tolerance, error estimate, residual, and convergence
status as separate fields, and decimal calculations that round still report
rounded.
Variants§
Fast
15 significant digits.
Balanced
34 significant digits (default).
Precise
100 significant digits.
Implementations§
Trait Implementations§
impl Copy for Budget
Source§impl<'de> Deserialize<'de> for Budget
impl<'de> Deserialize<'de> for Budget
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 Eq for Budget
impl StructuralPartialEq for Budget
Auto Trait Implementations§
impl Freeze for Budget
impl RefUnwindSafe for Budget
impl Send for Budget
impl Sync for Budget
impl Unpin for Budget
impl UnsafeUnpin for Budget
impl UnwindSafe for Budget
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