pub struct ResolvedStrategy {
pub id: StrategyId,
pub technique: Technique,
pub recipe: EstimationRecipe,
pub screens: &'static [ScreenKind],
}Expand description
A StrategyId resolved into the selection DATA it runs under: the
operation-order EstimationRecipe (P0-P2) and the residual-screen families
(P3). The recipe is the current reference recipe for the technique, so a
resolved reference strategy dispatches bit-identically to the existing path.
Fields§
§id: StrategyId§technique: Technique§recipe: EstimationRecipe§screens: &'static [ScreenKind]The residual-screen families this technique applies (P3 ScreenKind).
Implementations§
Source§impl ResolvedStrategy
impl ResolvedStrategy
Sourcepub fn resolve(id: StrategyId) -> Result<Self, EstimateError>
pub fn resolve(id: StrategyId) -> Result<Self, EstimateError>
Resolve a runtime StrategyId into its recipe and screen policy.
Reference strategies resolve to the recipe for their (technique, target) pair, rejecting an unsupported pair with
EstimateError::IncompatibleTarget; Canonical strategies resolve to
their canonical recipe (EstimationRecipe::for_canonical), rejecting a
technique whose canonical model is not yet implemented with
EstimateError::CanonicalUnavailable.
Sourcepub fn ambiguity_id_policy(
&self,
ratio_threshold: f64,
partial_min_ambiguities: usize,
) -> Option<AmbiguityIdPolicy>
pub fn ambiguity_id_policy( &self, ratio_threshold: f64, partial_min_ambiguities: usize, ) -> Option<AmbiguityIdPolicy>
The integer-ambiguity identity policy (P3) this strategy resolves under,
parameterized by the runtime ratio threshold and (RTK only) partial-set
floor. None for SPP, which carries no integer ambiguities.
Trait Implementations§
Source§impl Clone for ResolvedStrategy
impl Clone for ResolvedStrategy
Source§fn clone(&self) -> ResolvedStrategy
fn clone(&self) -> ResolvedStrategy
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for ResolvedStrategy
Source§impl Debug for ResolvedStrategy
impl Debug for ResolvedStrategy
Source§impl PartialEq for ResolvedStrategy
impl PartialEq for ResolvedStrategy
Source§fn eq(&self, other: &ResolvedStrategy) -> bool
fn eq(&self, other: &ResolvedStrategy) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ResolvedStrategy
Auto Trait Implementations§
impl Freeze for ResolvedStrategy
impl RefUnwindSafe for ResolvedStrategy
impl Send for ResolvedStrategy
impl Sync for ResolvedStrategy
impl Unpin for ResolvedStrategy
impl UnsafeUnpin for ResolvedStrategy
impl UnwindSafe for ResolvedStrategy
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
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>
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Scalar for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.