pub struct SolveRequest<'a> { /* private fields */ }Expand description
Immutable, fully checked request passed to a study-solver provider.
Implementations§
Source§impl<'a> SolveRequest<'a>
impl<'a> SolveRequest<'a>
Sourcepub fn new(
problem: &'a InterferenceProblem,
plane: &'a SamplingPlane,
sampling_policy: SamplingPolicy,
sampling_thresholds: SamplingThresholds,
work_budget: WorkBudget,
) -> Self
pub fn new( problem: &'a InterferenceProblem, plane: &'a SamplingPlane, sampling_policy: SamplingPolicy, sampling_thresholds: SamplingThresholds, work_budget: WorkBudget, ) -> Self
Builds a request from checked domain values and explicit admission policy.
Sourcepub fn problem(self) -> &'a InterferenceProblem
pub fn problem(self) -> &'a InterferenceProblem
Returns the coherent problem to solve.
Sourcepub fn plane(self) -> &'a SamplingPlane
pub fn plane(self) -> &'a SamplingPlane
Returns the exact physical sampling plane.
Sourcepub fn sampling_policy(self) -> SamplingPolicy
pub fn sampling_policy(self) -> SamplingPolicy
Returns the sampling-admission policy.
Sourcepub fn sampling_thresholds(self) -> SamplingThresholds
pub fn sampling_thresholds(self) -> SamplingThresholds
Returns the sampling-classification thresholds.
Sourcepub fn work_budget(self) -> WorkBudget
pub fn work_budget(self) -> WorkBudget
Returns the complete pre-allocation work budget.
Trait Implementations§
Source§impl<'a> Clone for SolveRequest<'a>
impl<'a> Clone for SolveRequest<'a>
Source§fn clone(&self) -> SolveRequest<'a>
fn clone(&self) -> SolveRequest<'a>
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<'a> Copy for SolveRequest<'a>
Auto Trait Implementations§
impl<'a> Freeze for SolveRequest<'a>
impl<'a> RefUnwindSafe for SolveRequest<'a>
impl<'a> Send for SolveRequest<'a>
impl<'a> Sync for SolveRequest<'a>
impl<'a> Unpin for SolveRequest<'a>
impl<'a> UnsafeUnpin for SolveRequest<'a>
impl<'a> UnwindSafe for SolveRequest<'a>
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