pub struct EvalConfig {
pub max_pow_exponent: usize,
pub max_result_digits: usize,
pub max_evalf_precision: u32,
}Expand description
Controls the bounds on automatic evaluation in constructors.
These guards prevent runaway computation from pathological inputs
like 7^(10^100) which would allocate astronomical amounts of memory.
Fields§
§max_pow_exponent: usizeMaximum integer exponent for automatic evaluation of pow().
If the exponent exceeds this, pow() returns an unevaluated Pow node
instead of computing the result.
Default: 1000.
max_result_digits: usizeMaximum digits in a numeric result before we refuse to auto-evaluate.
Default: 5000.
max_evalf_precision: u32Maximum working precision (in bits) for evalf() before giving up.
Default: 10,000.
Trait Implementations§
Source§impl Clone for EvalConfig
impl Clone for EvalConfig
Source§impl Debug for EvalConfig
impl Debug for EvalConfig
Auto Trait Implementations§
impl Freeze for EvalConfig
impl RefUnwindSafe for EvalConfig
impl Send for EvalConfig
impl Sync for EvalConfig
impl Unpin for EvalConfig
impl UnsafeUnpin for EvalConfig
impl UnwindSafe for EvalConfig
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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