pub struct Current {
pub set_deg: f64,
pub drift_kn: f64,
}Expand description
A water current.
Fields§
§set_deg: f64The direction the current flows towards, degrees true.
Note this is the opposite convention to wind, which is named by the direction it comes from. That is the standard marine usage and not a slip: a north-going current sets 000, a north wind blows from 000.
drift_kn: f64Current speed in knots.
Trait Implementations§
impl Copy for Current
impl StructuralPartialEq for Current
Auto Trait Implementations§
impl Freeze for Current
impl RefUnwindSafe for Current
impl Send for Current
impl Sync for Current
impl Unpin for Current
impl UnsafeUnpin for Current
impl UnwindSafe for Current
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