pub struct ParsedWindDirection {
pub degrees: f64,
pub was_clock: bool,
}Expand description
A wind direction as entered at an input boundary (MBA-1367): the resolved degrees
in the wind-FROM convention (0 = headwind, 90 = from the right — post-0.19.0), plus
whether it was entered as a clock position. Clock positions are shooter-relative
BY DEFINITION (12 o’clock = dead ahead), so was_clock is what lets the
earth-fixed compass mode (MBA-1368) reject them.
Fields§
§degrees: f64§was_clock: boolTrait Implementations§
Source§impl Clone for ParsedWindDirection
impl Clone for ParsedWindDirection
Source§fn clone(&self) -> ParsedWindDirection
fn clone(&self) -> ParsedWindDirection
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ParsedWindDirection
Source§impl Debug for ParsedWindDirection
impl Debug for ParsedWindDirection
Source§impl PartialEq for ParsedWindDirection
impl PartialEq for ParsedWindDirection
impl StructuralPartialEq for ParsedWindDirection
Auto Trait Implementations§
impl Freeze for ParsedWindDirection
impl RefUnwindSafe for ParsedWindDirection
impl Send for ParsedWindDirection
impl Sync for ParsedWindDirection
impl Unpin for ParsedWindDirection
impl UnsafeUnpin for ParsedWindDirection
impl UnwindSafe for ParsedWindDirection
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
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
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
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.