[][src]Struct metfor::WindSpdDir

pub struct WindSpdDir<S> where
    S: Quantity
{ pub speed: S, pub direction: f64, }

Wind direction and speed in knots.

Fields

speed: Sdirection: f64

Trait Implementations

impl<S> VectorQuantity<S> for WindSpdDir<S> where
    S: Quantity + PartialOrd
[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]

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]

impl<T, S> PartialEq<T> for WindSpdDir<S> where
    WindSpdDir<S>: From<T> + VectorQuantity<S>,
    T: Copy,
    S: Quantity + PartialEq
[src]

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl<S1, S2> From<WindUV<S1>> for WindSpdDir<S2> where
    S1: Speed,
    S2: From<S1>,
    S2: Speed
[src]

impl<S1, S2> From<WindSpdDir<S1>> for WindUV<S2> where
    S1: Speed,
    S2: From<S1>,
    S2: Speed
[src]

impl<S: Clone> Clone for WindSpdDir<S> where
    S: Quantity
[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]

impl<S: Debug> Debug for WindSpdDir<S> where
    S: Quantity
[src]

impl<T, S> Add<T> for WindSpdDir<S> where
    WindSpdDir<S>: From<T> + VectorQuantity<S>,
    S: Quantity + Add<S, Output = S>, 
[src]

type Output = WindSpdDir<S>

The resulting type after applying the + operator.

impl<T, S> Sub<T> for WindSpdDir<S> where
    WindSpdDir<S>: From<T> + VectorQuantity<S>,
    S: Quantity + Sub<S, Output = S>, 
[src]

type Output = WindSpdDir<S>

The resulting type after applying the - operator.

impl<T, S> AddAssign<T> for WindSpdDir<S> where
    WindSpdDir<S>: From<T> + VectorQuantity<S>,
    S: Quantity + Add<S, Output = S>, 
[src]

impl<T, S> SubAssign<T> for WindSpdDir<S> where
    WindSpdDir<S>: From<T> + VectorQuantity<S>,
    S: Quantity + Sub<S, Output = S>, 
[src]

Auto Trait Implementations

impl<S> Send for WindSpdDir<S> where
    S: Send

impl<S> Sync for WindSpdDir<S> where
    S: Sync

Blanket Implementations

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]