pub struct Preferences {
pub prefer_hold: bool,
pub max_hold_mil: Option<f64>,
}Expand description
Caller preferences steering plan_corrections’s ranking – never its underlying
arithmetic, which is identical regardless of these values. See “Ranking is
deterministic” in plan_corrections’s own doc comment.
#[derive(Default)] (prefer_hold: false, max_hold_mil: None – prefer dial, no extra
hold cap) rather than a hand-written impl: bool’s and Option’s own defaults already
produce exactly this (MBA-1348 review fix – confirmed equivalent, not just
clippy-driven).
Fields§
§prefer_hold: boolWhen ranking ties on residual_linear_at_range_m, prefer holding over dialing.
false (the Default impl’s value) prefers dialing.
max_hold_mil: Option<f64>An optional blanket cap on any single hold component’s magnitude, TRUE angular mil,
applied together with (the tighter of it and) OpticProfile::reticle_hold_bounds.
None (the default) applies no cap beyond reticle_hold_bounds itself.
Trait Implementations§
Source§impl Clone for Preferences
impl Clone for Preferences
Source§fn clone(&self) -> Preferences
fn clone(&self) -> Preferences
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 Preferences
Source§impl Debug for Preferences
impl Debug for Preferences
Source§impl Default for Preferences
impl Default for Preferences
Source§fn default() -> Preferences
fn default() -> Preferences
Source§impl<'de> Deserialize<'de> for Preferences
impl<'de> Deserialize<'de> for Preferences
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for Preferences
impl PartialEq for Preferences
Source§impl Serialize for Preferences
impl Serialize for Preferences
impl StructuralPartialEq for Preferences
Auto Trait Implementations§
impl Freeze for Preferences
impl RefUnwindSafe for Preferences
impl Send for Preferences
impl Sync for Preferences
impl Unpin for Preferences
impl UnsafeUnpin for Preferences
impl UnwindSafe for Preferences
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.