pub struct ComputeBudget {
pub max_time: Duration,
pub max_iterations: usize,
pub tolerance: f64,
}Expand description
Budget constraints for solver execution.
Fields§
§max_time: DurationMaximum wall-clock time allowed.
max_iterations: usizeMaximum number of iterations.
tolerance: f64Target residual tolerance.
Trait Implementations§
Source§impl Clone for ComputeBudget
impl Clone for ComputeBudget
Source§fn clone(&self) -> ComputeBudget
fn clone(&self) -> ComputeBudget
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 moreSource§impl Debug for ComputeBudget
impl Debug for ComputeBudget
Auto Trait Implementations§
impl Freeze for ComputeBudget
impl RefUnwindSafe for ComputeBudget
impl Send for ComputeBudget
impl Sync for ComputeBudget
impl Unpin for ComputeBudget
impl UnsafeUnpin for ComputeBudget
impl UnwindSafe for ComputeBudget
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