pub struct ExecContext {
pub numeric: NumericContext,
pub budget: Option<Budget>,
pub limits: Limits,
pub cancellation: CancellationToken,
pub deadline: Option<Instant>,
pub seed: Option<u64>,
pub trace: TraceLevel,
}Expand description
The context passed to every function invocation.
Fields§
§numeric: NumericContext§budget: Option<Budget>Budget preset, used by iterative methods for default tolerances.
limits: Limits§cancellation: CancellationToken§deadline: Option<Instant>§seed: Option<u64>§trace: TraceLevelImplementations§
Source§impl ExecContext
impl ExecContext
pub fn conservative() -> ExecContext
pub fn with_numeric(self, numeric: NumericContext) -> ExecContext
pub fn with_limits(self, limits: Limits) -> ExecContext
pub fn with_seed(self, seed: Option<u64>) -> ExecContext
pub fn with_trace(self, trace: TraceLevel) -> ExecContext
pub fn with_budget(self, budget: Option<Budget>) -> ExecContext
pub fn exact() -> ExecContext
pub fn scientific() -> ExecContext
Sourcepub fn check(&self) -> Result<(), EngineError>
pub fn check(&self) -> Result<(), EngineError>
Check cancellation and deadline.
pub fn effective(&self) -> EffectiveContext
Trait Implementations§
Source§impl Clone for ExecContext
impl Clone for ExecContext
Source§fn clone(&self) -> ExecContext
fn clone(&self) -> ExecContext
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 ExecContext
impl Debug for ExecContext
Auto Trait Implementations§
impl Freeze for ExecContext
impl RefUnwindSafe for ExecContext
impl Send for ExecContext
impl Sync for ExecContext
impl Unpin for ExecContext
impl UnsafeUnpin for ExecContext
impl UnwindSafe for ExecContext
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