[−][src]Struct geom::Speed
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 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.
fn add(self, other: Speed) -> Speed
[src]
impl Clone for Speed
[src]
impl Copy for Speed
[src]
impl Debug 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 Div<Speed> for Distance
[src]
type Output = Duration
The resulting type after applying the /
operator.
fn div(self, other: Speed) -> Duration
[src]
impl Div<Speed> for Speed
[src]
type Output = f64
The resulting type after applying the /
operator.
fn div(self, other: Speed) -> f64
[src]
impl Eq for Speed
[src]
impl Mul<Duration> for Speed
[src]
type Output = Distance
The resulting type after applying the *
operator.
fn mul(self, other: Duration) -> Distance
[src]
impl Mul<Speed> for Duration
[src]
type Output = Distance
The resulting type after applying the *
operator.
fn mul(self, other: Speed) -> Distance
[src]
impl Mul<Speed> for f64
[src]
type Output = Speed
The resulting type after applying the *
operator.
fn mul(self, other: Speed) -> Speed
[src]
impl Mul<f64> for Speed
[src]
type Output = Speed
The resulting type after applying the *
operator.
fn mul(self, scalar: f64) -> Speed
[src]
impl Neg for Speed
[src]
impl Ord for Speed
[src]
fn cmp(&self, other: &Speed) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl PartialEq<Speed> for Speed
[src]
impl PartialOrd<Speed> for Speed
[src]
fn partial_cmp(&self, other: &Speed) -> Option<Ordering>
[src]
fn lt(&self, other: &Speed) -> bool
[src]
fn le(&self, other: &Speed) -> bool
[src]
fn gt(&self, other: &Speed) -> bool
[src]
fn ge(&self, other: &Speed) -> bool
[src]
impl Serialize for Speed
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralPartialEq for Speed
[src]
impl Sub<Speed> for Speed
[src]
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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.
pub 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>,