[−][src]Struct geom::speed::Speed
In meters per second. Can be negative.
Implementations
impl Speed
[src]
pub const ZERO: Speed
[src]
pub fn is_zero(self, timestep: Duration) -> bool
[src]
Is a speed effectively zero based on the timestep?
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.
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 Display for Speed
[src]
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 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 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
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]
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,
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.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
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.
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>,