pub enum PressureReferenceMode {
Absolute,
Qnh,
}Expand description
Whether a station-pressure input is already absolute (station) pressure, or a sea-level- corrected altimeter setting (QNH / “barometer” reading) that must be reduced to station pressure at the shooter’s altitude before use (MBA-1397).
Kestrel, AB Mobile, Shooter, JBM, and Hornady 4DOF all let the user declare which one they
are entering. Previously this engine only supported Absolute — an
entered sea-level-corrected barometer/METAR value at a real altitude was silently treated
as station pressure, over-stating air density and under-stating drop.
Variants§
Absolute
The input is already absolute station pressure — today’s meaning, and the default, so every existing caller that never sets this is byte-identical to pre-MBA-1397 behavior.
Qnh
The input is a sea-level-corrected altimeter setting (QNH) and must be reduced to
station pressure at the target altitude via reduce_qnh_to_station_pressure.
Trait Implementations§
Source§impl Clone for PressureReferenceMode
impl Clone for PressureReferenceMode
Source§fn clone(&self) -> PressureReferenceMode
fn clone(&self) -> PressureReferenceMode
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PressureReferenceMode
impl Debug for PressureReferenceMode
Source§impl Default for PressureReferenceMode
impl Default for PressureReferenceMode
Source§fn default() -> PressureReferenceMode
fn default() -> PressureReferenceMode
Source§impl PartialEq for PressureReferenceMode
impl PartialEq for PressureReferenceMode
Source§impl ValueEnum for PressureReferenceMode
impl ValueEnum for PressureReferenceMode
impl Copy for PressureReferenceMode
impl Eq for PressureReferenceMode
impl StructuralPartialEq for PressureReferenceMode
Auto Trait Implementations§
impl Freeze for PressureReferenceMode
impl RefUnwindSafe for PressureReferenceMode
impl Send for PressureReferenceMode
impl Sync for PressureReferenceMode
impl Unpin for PressureReferenceMode
impl UnwindSafe for PressureReferenceMode
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read more§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).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.