[][src]Struct geom::Speed

pub struct Speed(_);

Implementations

impl Speed[src]

pub const ZERO: Speed[src]

pub fn is_zero(self, timestep: Duration) -> bool[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]

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 Display for Speed[src]

impl Div<Speed> for Distance[src]

type Output = Duration

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

impl Send for Speed

impl Sync for Speed

impl Unpin for Speed

impl UnwindSafe for Speed

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[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<V, T> VZip<V> for T where
    V: MultiLane<T>,