pub enum DropUnit {
Mil,
Moa,
In,
}Expand description
Unit in which observed drops are supplied to (and residuals reported from)
true-velocity’s multi-observation joint calibration (MBA-1316). The
historical single-observation path is always MIL, so mil is the default and
leaves that path byte-identical.
Variants§
Mil
Milliradians (angular)
Moa
Minutes of angle (angular, true 1/60°)
In
Inches below line of sight (linear drop at the target)
Implementations§
Source§impl DropUnit
impl DropUnit
Sourcepub fn parse(s: &str) -> Result<Self, String>
pub fn parse(s: &str) -> Result<Self, String>
Parse a drop-unit token ("mil" | "moa" | "in", case-insensitive)
without going through clap, for non-CLI front ends (e.g. the WASM
terminal parser).
Sourcepub fn express_drop_m(self, drop_m: f64, z_m: f64) -> f64
pub fn express_drop_m(self, drop_m: f64, z_m: f64) -> f64
Express a linear vertical drop below the line of sight (drop_m, meters)
at horizontal distance z_m (meters) in this unit. Angular units use the
same small-angle convention the engine’s MIL output has always used
(drop/range), so mil matches the legacy single-observation contract
exactly; moa is true minutes of angle and in is the linear drop itself.
Trait Implementations§
impl Copy for DropUnit
impl Eq for DropUnit
impl StructuralPartialEq for DropUnit
Auto Trait Implementations§
impl Freeze for DropUnit
impl RefUnwindSafe for DropUnit
impl Send for DropUnit
impl Sync for DropUnit
impl Unpin for DropUnit
impl UnsafeUnpin for DropUnit
impl UnwindSafe for DropUnit
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.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.