pub struct DeviceSolveConfig<S> {
pub max_iterations: u32,
pub tolerance: S,
pub timing_mode: TimingMode,
}Expand description
Runtime device-solve configuration.
Fields§
§max_iterations: u32Maximum solver iterations (must be > 0).
tolerance: SConvergence tolerance.
timing_mode: TimingModeExecution timing policy.
Implementations§
Source§impl<S: FiniteScalar + OrderedScalar> DeviceSolveConfig<S>
impl<S: FiniteScalar + OrderedScalar> DeviceSolveConfig<S>
Sourcepub fn validate(&self) -> Result<(), SolverError>
pub fn validate(&self) -> Result<(), SolverError>
Validate the structural config rules (RFC 005 §6): max_iterations > 0
and a finite, non-negative tolerance.
Zero tolerance is not rejected here — whether a concrete solver forbids
it is RFC 006’s decision (decision M6). Returns a structured
SolverError; never panics.
Trait Implementations§
Source§impl<S: Clone> Clone for DeviceSolveConfig<S>
impl<S: Clone> Clone for DeviceSolveConfig<S>
Source§fn clone(&self) -> DeviceSolveConfig<S>
fn clone(&self) -> DeviceSolveConfig<S>
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 moreimpl<S: Copy> Copy for DeviceSolveConfig<S>
Auto Trait Implementations§
impl<S> Freeze for DeviceSolveConfig<S>where
S: Freeze,
impl<S> RefUnwindSafe for DeviceSolveConfig<S>where
S: RefUnwindSafe,
impl<S> Send for DeviceSolveConfig<S>where
S: Send,
impl<S> Sync for DeviceSolveConfig<S>where
S: Sync,
impl<S> Unpin for DeviceSolveConfig<S>where
S: Unpin,
impl<S> UnsafeUnpin for DeviceSolveConfig<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for DeviceSolveConfig<S>where
S: 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