pub struct Speed { /* private fields */ }
Implementations§
Source§impl Speed
impl Speed
pub const fn new(value: f64, units: SpeedUnits) -> Self
pub fn value(&self) -> f64
pub fn units(&self) -> SpeedUnits
Source§impl Speed
impl Speed
pub fn as_meters_per_second(&self) -> Speed
pub fn new_meters_per_second(value: f64) -> Speed
Trait Implementations§
Source§impl<'a> AddAssign<&Speed> for &mut Speed
impl<'a> AddAssign<&Speed> for &mut Speed
Source§fn add_assign(&mut self, rhs: &Speed)
fn add_assign(&mut self, rhs: &Speed)
Performs the
+=
operation. Read moreSource§impl<'a> AddAssign<&Speed> for Speed
impl<'a> AddAssign<&Speed> for Speed
Source§fn add_assign(&mut self, rhs: &Speed)
fn add_assign(&mut self, rhs: &Speed)
Performs the
+=
operation. Read moreSource§impl<'a> AddAssign<&mut Speed> for &mut Speed
impl<'a> AddAssign<&mut Speed> for &mut Speed
Source§fn add_assign(&mut self, rhs: &mut Speed)
fn add_assign(&mut self, rhs: &mut Speed)
Performs the
+=
operation. Read moreSource§impl<'a> AddAssign<&mut Speed> for Speed
impl<'a> AddAssign<&mut Speed> for Speed
Source§fn add_assign(&mut self, rhs: &mut Speed)
fn add_assign(&mut self, rhs: &mut Speed)
Performs the
+=
operation. Read moreSource§impl<'a> AddAssign<Speed> for &mut Speed
impl<'a> AddAssign<Speed> for &mut Speed
Source§fn add_assign(&mut self, rhs: Speed)
fn add_assign(&mut self, rhs: Speed)
Performs the
+=
operation. Read moreSource§impl<'a> AddAssign for Speed
impl<'a> AddAssign for Speed
Source§fn add_assign(&mut self, rhs: Speed)
fn add_assign(&mut self, rhs: Speed)
Performs the
+=
operation. Read moreSource§impl<'a> DivAssign<f64> for &mut Speed
impl<'a> DivAssign<f64> for &mut Speed
Source§fn div_assign(&mut self, rhs: f64)
fn div_assign(&mut self, rhs: f64)
Performs the
/=
operation. Read moreSource§impl<'a> DivAssign<f64> for Speed
impl<'a> DivAssign<f64> for Speed
Source§fn div_assign(&mut self, rhs: f64)
fn div_assign(&mut self, rhs: f64)
Performs the
/=
operation. Read moreSource§impl<'a> MulAssign<f64> for &mut Speed
impl<'a> MulAssign<f64> for &mut Speed
Source§fn mul_assign(&mut self, rhs: f64)
fn mul_assign(&mut self, rhs: f64)
Performs the
*=
operation. Read moreSource§impl<'a> MulAssign<f64> for Speed
impl<'a> MulAssign<f64> for Speed
Source§fn mul_assign(&mut self, rhs: f64)
fn mul_assign(&mut self, rhs: f64)
Performs the
*=
operation. Read moreSource§impl Ord for Speed
impl Ord for Speed
Source§impl PartialOrd for Speed
impl PartialOrd for Speed
Source§impl<'a> SubAssign<&Speed> for &mut Speed
impl<'a> SubAssign<&Speed> for &mut Speed
Source§fn sub_assign(&mut self, rhs: &Speed)
fn sub_assign(&mut self, rhs: &Speed)
Performs the
-=
operation. Read moreSource§impl<'a> SubAssign<&Speed> for Speed
impl<'a> SubAssign<&Speed> for Speed
Source§fn sub_assign(&mut self, rhs: &Speed)
fn sub_assign(&mut self, rhs: &Speed)
Performs the
-=
operation. Read moreSource§impl<'a> SubAssign<&mut Speed> for &mut Speed
impl<'a> SubAssign<&mut Speed> for &mut Speed
Source§fn sub_assign(&mut self, rhs: &mut Speed)
fn sub_assign(&mut self, rhs: &mut Speed)
Performs the
-=
operation. Read moreSource§impl<'a> SubAssign<&mut Speed> for Speed
impl<'a> SubAssign<&mut Speed> for Speed
Source§fn sub_assign(&mut self, rhs: &mut Speed)
fn sub_assign(&mut self, rhs: &mut Speed)
Performs the
-=
operation. Read moreSource§impl<'a> SubAssign<Speed> for &mut Speed
impl<'a> SubAssign<Speed> for &mut Speed
Source§fn sub_assign(&mut self, rhs: Speed)
fn sub_assign(&mut self, rhs: Speed)
Performs the
-=
operation. Read moreSource§impl<'a> SubAssign for Speed
impl<'a> SubAssign for Speed
Source§fn sub_assign(&mut self, rhs: Speed)
fn sub_assign(&mut self, rhs: Speed)
Performs the
-=
operation. Read moreSource§impl Unit<SpeedUnits> for &Speed
impl Unit<SpeedUnits> for &Speed
Source§impl Unit<SpeedUnits> for &mut Speed
impl Unit<SpeedUnits> for &mut Speed
Source§impl Unit<SpeedUnits> for Speed
impl Unit<SpeedUnits> for Speed
Source§impl UnitStruct<SpeedUnits> for &Speed
impl UnitStruct<SpeedUnits> for &Speed
Source§impl UnitStruct<SpeedUnits> for &mut Speed
impl UnitStruct<SpeedUnits> for &mut Speed
Source§impl UnitStruct<SpeedUnits> for Speed
impl UnitStruct<SpeedUnits> for Speed
impl Copy for Speed
impl Eq for Speed
Auto Trait Implementations§
impl Freeze for Speed
impl RefUnwindSafe for Speed
impl Send for Speed
impl Sync for Speed
impl Unpin for Speed
impl UnwindSafe for Speed
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more