Skip to main content

AdaptiveRequest

Struct AdaptiveRequest 

Source
pub struct AdaptiveRequest<'a> {
    pub domain_m: (f64, f64),
    pub anchors_m: Vec<f64>,
    pub budget: AdaptiveBudget,
    pub max_rows: usize,
    pub click: Option<(&'a ClickValue, &'a ClickValue)>,
    pub elevation_cf: f64,
    pub windage_cf: f64,
    pub bias_mil: f64,
}
Expand description

Everything one adaptive card needs beyond the solved curve itself.

elevation_cf / windage_cf are the scope’s tracking correction factors (MBA-1358). Both are VALIDATED here against crate::adjustment::tracking_cf_in_range’s locked (0.5, 1.5) band and rejected with CardError::InvalidTrackingCf – this is a public library API that language bindings call without the CLI’s own validation, and an out-of-band CF fails silently rather than loudly. Enforced as a hard bound here, unlike crate::optic::OpticError::NonPositiveTrackingFactor’s advisory-only band (see its own doc comment): the card engine enforces it because a large finite CF here would otherwise produce a confident budget_met: true on a card that does not actually meet its stated error budget, while the planner does not, because its residual stays honest under a wild CF. bias_mil is the selected zero set’s elevation dial correction (MBA-1360) in true angular mil; it applies to the ELEVATION axis only, which is what “zero-set bias as a drop-equivalent” means.

Fields§

§domain_m: (f64, f64)

(start, end) in meters. Both must be finite, positive, and increasing.

§anchors_m: Vec<f64>

Ranges that must appear as rows whatever the error says (a known dope point, a target distance). Validated into the domain, never silently dropped.

§budget: AdaptiveBudget§max_rows: usize

Upper bound on printed rows. The mandatory seed (both domain ends plus every anchor) is never truncated to honour it – see AdaptiveCardReportV1::rows_capped.

§click: Option<(&'a ClickValue, &'a ClickValue)>

(elevation, windage) turret graduations. Some snaps every printed row onto the detent lattice, which is what a shooter can actually dial; None prints the unrounded angle.

§elevation_cf: f64§windage_cf: f64§bias_mil: f64

Trait Implementations§

Source§

impl<'a> Clone for AdaptiveRequest<'a>

Source§

fn clone(&self) -> AdaptiveRequest<'a>

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<'a> Debug for AdaptiveRequest<'a>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<'a> Freeze for AdaptiveRequest<'a>

§

impl<'a> RefUnwindSafe for AdaptiveRequest<'a>

§

impl<'a> Send for AdaptiveRequest<'a>

§

impl<'a> Sync for AdaptiveRequest<'a>

§

impl<'a> Unpin for AdaptiveRequest<'a>

§

impl<'a> UnsafeUnpin for AdaptiveRequest<'a>

§

impl<'a> UnwindSafe for AdaptiveRequest<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<SS, SP> SupersetOf<SS> for SP
where SS: SubsetOf<SP>,

Source§

fn to_subset(&self) -> Option<SS>

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
Source§

fn is_in_subset(&self) -> bool

Checks if self is actually part of its subset T (and can be converted to it).
Source§

fn to_subset_unchecked(&self) -> SS

Use with care! Same as self.to_subset but without any property checks. Always succeeds.
Source§

fn from_subset(element: &SS) -> SP

The inclusion map: converts self to the equivalent element of its superset.
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.