[−][src]Struct metfor::WindSpdDir
Wind direction and speed in knots.
Fields
speed: S
direction: f64
Trait Implementations
impl<S> VectorQuantity<S> for WindSpdDir<S> where
S: Quantity + PartialOrd,
[src]
S: Quantity + PartialOrd,
fn pack_xy(vals: (S, S)) -> Self
[src]
fn unpack_xy(self) -> (S, S)
[src]
fn unwrap_xy(self) -> (S, S)
[src]
fn abs(&self) -> S
[src]
fn into_option(self) -> Option<(S, S)>
[src]
fn approx_eq<RHS, T, TOL>(self, other: RHS, tol: TOL) -> bool where
Self: From<RHS> + Sub<Self, Output = Self>,
S: From<TOL> + From<T> + PartialOrd,
RHS: VectorQuantity<T>,
T: Quantity,
[src]
Self: From<RHS> + Sub<Self, Output = Self>,
S: From<TOL> + From<T> + PartialOrd,
RHS: VectorQuantity<T>,
T: Quantity,
Test whether these two vectors are close by looking at the magnitude of their difference.
impl<S> Wind<S> for WindSpdDir<S> where
S: Speed,
[src]
S: Speed,
impl<T, S> PartialEq<T> for WindSpdDir<S> where
WindSpdDir<S>: From<T> + VectorQuantity<S>,
T: Copy,
S: Quantity + PartialEq,
[src]
WindSpdDir<S>: From<T> + VectorQuantity<S>,
T: Copy,
S: Quantity + PartialEq,
fn eq(&self, rhs: &T) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=
.
impl<S1, S2> From<WindUV<S1>> for WindSpdDir<S2> where
S1: Speed,
S2: From<S1>,
S2: Speed,
[src]
S1: Speed,
S2: From<S1>,
S2: Speed,
impl<S1, S2> From<WindSpdDir<S1>> for WindUV<S2> where
S1: Speed,
S2: From<S1>,
S2: Speed,
[src]
S1: Speed,
S2: From<S1>,
S2: Speed,
fn from(wind: WindSpdDir<S1>) -> Self
[src]
impl<S: Clone> Clone for WindSpdDir<S> where
S: Quantity,
[src]
S: Quantity,
fn clone(&self) -> WindSpdDir<S>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<S: Copy> Copy for WindSpdDir<S> where
S: Quantity,
[src]
S: Quantity,
impl<S: Debug> Debug for WindSpdDir<S> where
S: Quantity,
[src]
S: Quantity,
impl<T, S> Add<T> for WindSpdDir<S> where
WindSpdDir<S>: From<T> + VectorQuantity<S>,
S: Quantity + Add<S, Output = S>,
[src]
WindSpdDir<S>: From<T> + VectorQuantity<S>,
S: Quantity + Add<S, Output = S>,
type Output = WindSpdDir<S>
The resulting type after applying the +
operator.
fn add(self, rhs: T) -> WindSpdDir<S>
[src]
impl<T, S> Sub<T> for WindSpdDir<S> where
WindSpdDir<S>: From<T> + VectorQuantity<S>,
S: Quantity + Sub<S, Output = S>,
[src]
WindSpdDir<S>: From<T> + VectorQuantity<S>,
S: Quantity + Sub<S, Output = S>,
type Output = WindSpdDir<S>
The resulting type after applying the -
operator.
fn sub(self, rhs: T) -> WindSpdDir<S>
[src]
impl<T, S> AddAssign<T> for WindSpdDir<S> where
WindSpdDir<S>: From<T> + VectorQuantity<S>,
S: Quantity + Add<S, Output = S>,
[src]
WindSpdDir<S>: From<T> + VectorQuantity<S>,
S: Quantity + Add<S, Output = S>,
fn add_assign(&mut self, rhs: T)
[src]
impl<T, S> SubAssign<T> for WindSpdDir<S> where
WindSpdDir<S>: From<T> + VectorQuantity<S>,
S: Quantity + Sub<S, Output = S>,
[src]
WindSpdDir<S>: From<T> + VectorQuantity<S>,
S: Quantity + Sub<S, Output = S>,
fn sub_assign(&mut self, rhs: T)
[src]
Auto Trait Implementations
impl<S> Send for WindSpdDir<S> where
S: Send,
S: Send,
impl<S> Sync for WindSpdDir<S> where
S: Sync,
S: Sync,
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,