pub struct Wind { /* private fields */ }Expand description
True wind: direction from and speed.
Named by the direction it blows from, speed never negative. Apparent wind is a different quantity.
Implementations§
Source§impl Wind
impl Wind
Sourcepub fn new(from: TrueCourse, speed: Speed) -> Result<Self>
pub fn new(from: TrueCourse, speed: Speed) -> Result<Self>
Sourcepub const fn from(&self) -> TrueCourse
pub const fn from(&self) -> TrueCourse
Direction the wind blows from.
Undefined at zero speed; reported as 000°.
Sourcepub fn towards(&self) -> TrueCourse
pub fn towards(&self) -> TrueCourse
Direction the wind blows towards: reciprocal of from.
Trait Implementations§
impl Copy for Wind
impl StructuralPartialEq for Wind
Auto Trait Implementations§
impl Freeze for Wind
impl RefUnwindSafe for Wind
impl Send for Wind
impl Sync for Wind
impl Unpin for Wind
impl UnsafeUnpin for Wind
impl UnwindSafe for Wind
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