[][src]Struct geom::Speed

pub struct Speed(f64);

In meters per second. Can be negative.

Implementations

impl Speed[src]

pub const ZERO: Speed[src]

pub fn meters_per_second(value: f64) -> Speed[src]

pub const fn const_meters_per_second(value: f64) -> Speed[src]

pub fn miles_per_hour(value: f64) -> Speed[src]

pub fn km_per_hour(value: f64) -> Speed[src]

pub fn from_dist_time(d: Distance, t: Duration) -> Speed[src]

pub fn inner_meters_per_second(self) -> f64[src]

pub fn max(self, other: Speed) -> Speed[src]

pub fn min(self, other: Speed) -> Speed[src]

pub fn to_string(self, fmt: &UnitFmt) -> String[src]

Describes the speed according to formatting rules.

Trait Implementations

impl Add<Speed> for Speed[src]

type Output = Speed

The resulting type after applying the + operator.

impl Clone for Speed[src]

impl Copy for Speed[src]

impl Debug for Speed[src]

impl<'de> Deserialize<'de> for Speed[src]

impl Div<Speed> for Distance[src]

type Output = Duration

The resulting type after applying the / operator.

impl Div<Speed> for Speed[src]

type Output = f64

The resulting type after applying the / operator.

impl Mul<Duration> for Speed[src]

type Output = Distance

The resulting type after applying the * operator.

impl Mul<Speed> for Duration[src]

type Output = Distance

The resulting type after applying the * operator.

impl Mul<Speed> for f64[src]

type Output = Speed

The resulting type after applying the * operator.

impl Mul<f64> for Speed[src]

type Output = Speed

The resulting type after applying the * operator.

impl Neg for Speed[src]

type Output = Speed

The resulting type after applying the - operator.

impl PartialEq<Speed> for Speed[src]

impl PartialOrd<Speed> for Speed[src]

impl Serialize for Speed[src]

impl StructuralPartialEq for Speed[src]

impl Sub<Speed> for Speed[src]

type Output = Speed

The resulting type after applying the - operator.

Auto Trait Implementations

impl RefUnwindSafe for Speed[src]

impl Send for Speed[src]

impl Sync for Speed[src]

impl Unpin for Speed[src]

impl UnwindSafe for Speed[src]

Blanket Implementations

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

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

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

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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

type Owned = T

The resulting type after obtaining ownership.

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.