Struct geom::speed::Speed [−][src]
pub struct Speed(f64);
In meters per second. Can be negative.
Implementations
impl Speed
[src]
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 to_string(self, fmt: &UnitFmt) -> String
[src]
Describes the speed according to formatting rules.
Trait Implementations
impl<'de> Deserialize<'de> for Speed
[src]
impl<'de> Deserialize<'de> for Speed
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl PartialOrd<Speed> for Speed
[src]
impl PartialOrd<Speed> for Speed
[src]