pub struct Velocity {
pub d: Direction,
}Expand description
How fast something is moving in a particular direction, in m/s.
This is a vector unit.
Fields§
§d: DirectionImplementations§
Source§impl Velocity
§SI prefixes constructors: in_* & converters as_*
The Velocity quantity is internally stored in metres per second (m/s).
impl Velocity
§SI prefixes constructors: in_* & converters as_*
The Velocity quantity is internally stored in metres per second (m/s).
- base const constructors:
in_m_s,in_metres_second - base const converters:
as_m_s,as_metres_second
Sourcepub fn in_Qm_s(d: Direction) -> Self
Available on crate feature alloc only.
pub fn in_Qm_s(d: Direction) -> Self
alloc only.New Velocity in quettametres per second (Qm/s) (10³⁰ m/s).
Sourcepub fn in_quettametres_second(d: Direction) -> Self
Available on crate feature alloc only.
pub fn in_quettametres_second(d: Direction) -> Self
alloc only.New Velocity in quettametres per second (Qm/s).
Sourcepub fn as_Qm_s(&self) -> Direction
Available on crate feature alloc only.
pub fn as_Qm_s(&self) -> Direction
alloc only.Returns Velocity as quettametres per second (Qm/s) (10³⁰ m/s).
Sourcepub fn as_quettametres_second(&self) -> Direction
Available on crate feature alloc only.
pub fn as_quettametres_second(&self) -> Direction
alloc only.Returns Velocity as quettametres per second (Qm/s) (10³⁰ m/s).
Sourcepub fn in_Rm_s(d: Direction) -> Self
Available on crate feature alloc only.
pub fn in_Rm_s(d: Direction) -> Self
alloc only.New Velocity in ronnametres per second (Rm/s) (10²⁷ m/s).
Sourcepub fn in_ronnametres_second(d: Direction) -> Self
Available on crate feature alloc only.
pub fn in_ronnametres_second(d: Direction) -> Self
alloc only.New Velocity in ronnametres per second (Rm/s).
Sourcepub fn as_Rm_s(&self) -> Direction
Available on crate feature alloc only.
pub fn as_Rm_s(&self) -> Direction
alloc only.Returns Velocity as ronnametres per second (Rm/s) (10²⁷ m/s).
Sourcepub fn as_ronnametres_second(&self) -> Direction
Available on crate feature alloc only.
pub fn as_ronnametres_second(&self) -> Direction
alloc only.Returns Velocity as ronnametres per second (Rm/s) (10²⁷ m/s).
Sourcepub fn in_Ym_s(d: Direction) -> Self
Available on crate feature alloc only.
pub fn in_Ym_s(d: Direction) -> Self
alloc only.New Velocity in yottametres per second (Ym/s) (10²⁴ m/s).
Sourcepub fn in_yottametres_second(d: Direction) -> Self
Available on crate feature alloc only.
pub fn in_yottametres_second(d: Direction) -> Self
alloc only.New Velocity in yottametres per second (Ym/s).
Sourcepub fn as_Ym_s(&self) -> Direction
Available on crate feature alloc only.
pub fn as_Ym_s(&self) -> Direction
alloc only.Returns Velocity as yottametres per second (Ym/s) (10²⁴ m/s).
Sourcepub fn as_yottametres_second(&self) -> Direction
Available on crate feature alloc only.
pub fn as_yottametres_second(&self) -> Direction
alloc only.Returns Velocity as yottametres per second (Ym/s) (10²⁴ m/s).
Sourcepub fn in_Zm_s(d: Direction) -> Self
Available on crate feature alloc only.
pub fn in_Zm_s(d: Direction) -> Self
alloc only.New Velocity in zettametres per second (Zm/s) (10²¹ m/s).
Sourcepub fn in_zettametres_second(d: Direction) -> Self
Available on crate feature alloc only.
pub fn in_zettametres_second(d: Direction) -> Self
alloc only.New Velocity in zettametres per second (Zm/s).
Sourcepub fn as_Zm_s(&self) -> Direction
Available on crate feature alloc only.
pub fn as_Zm_s(&self) -> Direction
alloc only.Returns Velocity as zettametres per second (Zm/s) (10²¹ m/s).
Sourcepub fn as_zettametres_second(&self) -> Direction
Available on crate feature alloc only.
pub fn as_zettametres_second(&self) -> Direction
alloc only.Returns Velocity as zettametres per second (Zm/s) (10²¹ m/s).
Sourcepub fn in_Em_s(d: Direction) -> Self
Available on crate feature alloc only.
pub fn in_Em_s(d: Direction) -> Self
alloc only.New Velocity in exametres per second (Em/s) (10¹⁸ m/s).
Sourcepub fn in_exametres_second(d: Direction) -> Self
Available on crate feature alloc only.
pub fn in_exametres_second(d: Direction) -> Self
alloc only.New Velocity in exametres per second (Em/s).
Sourcepub fn as_Em_s(&self) -> Direction
Available on crate feature alloc only.
pub fn as_Em_s(&self) -> Direction
alloc only.Returns Velocity as exametres per second (Em/s) (10¹⁸ m/s).
Sourcepub fn as_exametres_second(&self) -> Direction
Available on crate feature alloc only.
pub fn as_exametres_second(&self) -> Direction
alloc only.Returns Velocity as exametres per second (Em/s) (10¹⁸ m/s).
Sourcepub fn in_Pm_s(d: Direction) -> Self
Available on crate feature alloc only.
pub fn in_Pm_s(d: Direction) -> Self
alloc only.New Velocity in petametres per second (Pm/s) (10¹⁵ m/s).
Sourcepub fn in_petametres_second(d: Direction) -> Self
Available on crate feature alloc only.
pub fn in_petametres_second(d: Direction) -> Self
alloc only.New Velocity in petametres per second (Pm/s).
Sourcepub fn as_Pm_s(&self) -> Direction
Available on crate feature alloc only.
pub fn as_Pm_s(&self) -> Direction
alloc only.Returns Velocity as petametres per second (Pm/s) (10¹⁵ m/s).
Sourcepub fn as_petametres_second(&self) -> Direction
Available on crate feature alloc only.
pub fn as_petametres_second(&self) -> Direction
alloc only.Returns Velocity as petametres per second (Pm/s) (10¹⁵ m/s).
Sourcepub fn in_Tm_s(d: Direction) -> Self
Available on crate feature alloc only.
pub fn in_Tm_s(d: Direction) -> Self
alloc only.New Velocity in terametres per second (Tm/s) (10¹² m/s).
Sourcepub fn in_terametres_second(d: Direction) -> Self
Available on crate feature alloc only.
pub fn in_terametres_second(d: Direction) -> Self
alloc only.New Velocity in terametres per second (Tm/s).
Sourcepub fn as_Tm_s(&self) -> Direction
Available on crate feature alloc only.
pub fn as_Tm_s(&self) -> Direction
alloc only.Returns Velocity as terametres per second (Tm/s) (10¹² m/s).
Sourcepub fn as_terametres_second(&self) -> Direction
Available on crate feature alloc only.
pub fn as_terametres_second(&self) -> Direction
alloc only.Returns Velocity as terametres per second (Tm/s) (10¹² m/s).
Sourcepub fn in_Gm_s(d: Direction) -> Self
Available on crate feature alloc only.
pub fn in_Gm_s(d: Direction) -> Self
alloc only.New Velocity in gigametres per second (Gm/s) (10⁹ m/s).
Sourcepub fn in_gigametres_second(d: Direction) -> Self
Available on crate feature alloc only.
pub fn in_gigametres_second(d: Direction) -> Self
alloc only.New Velocity in gigametres per second (Gm/s).
Sourcepub fn as_Gm_s(&self) -> Direction
Available on crate feature alloc only.
pub fn as_Gm_s(&self) -> Direction
alloc only.Returns Velocity as gigametres per second (Gm/s) (10⁹ m/s).
Sourcepub fn as_gigametres_second(&self) -> Direction
Available on crate feature alloc only.
pub fn as_gigametres_second(&self) -> Direction
alloc only.Returns Velocity as gigametres per second (Gm/s) (10⁹ m/s).
Sourcepub fn in_Mm_s(d: Direction) -> Self
Available on crate feature alloc only.
pub fn in_Mm_s(d: Direction) -> Self
alloc only.New Velocity in megametres per second (Mm/s) (10⁶ m/s).
Sourcepub fn in_megametres_second(d: Direction) -> Self
Available on crate feature alloc only.
pub fn in_megametres_second(d: Direction) -> Self
alloc only.New Velocity in megametres per second (Mm/s).
Sourcepub fn as_Mm_s(&self) -> Direction
Available on crate feature alloc only.
pub fn as_Mm_s(&self) -> Direction
alloc only.Returns Velocity as megametres per second (Mm/s) (10⁶ m/s).
Sourcepub fn as_megametres_second(&self) -> Direction
Available on crate feature alloc only.
pub fn as_megametres_second(&self) -> Direction
alloc only.Returns Velocity as megametres per second (Mm/s) (10⁶ m/s).
Sourcepub fn in_km_s(d: Direction) -> Self
Available on crate feature alloc only.
pub fn in_km_s(d: Direction) -> Self
alloc only.New Velocity in kilometres per second (km/s) (10³ m/s).
Sourcepub fn in_kilometres_second(d: Direction) -> Self
Available on crate feature alloc only.
pub fn in_kilometres_second(d: Direction) -> Self
alloc only.New Velocity in kilometres per second (km/s).
Sourcepub fn as_km_s(&self) -> Direction
Available on crate feature alloc only.
pub fn as_km_s(&self) -> Direction
alloc only.Returns Velocity as kilometres per second (km/s) (10³ m/s).
Sourcepub fn as_kilometres_second(&self) -> Direction
Available on crate feature alloc only.
pub fn as_kilometres_second(&self) -> Direction
alloc only.Returns Velocity as kilometres per second (km/s) (10³ m/s).
Sourcepub fn in_hm_s(d: Direction) -> Self
Available on crate feature alloc only.
pub fn in_hm_s(d: Direction) -> Self
alloc only.New Velocity in hectometres per second (hm/s) (10² m/s).
Sourcepub fn in_hectometres_second(d: Direction) -> Self
Available on crate feature alloc only.
pub fn in_hectometres_second(d: Direction) -> Self
alloc only.New Velocity in hectometres per second (hm/s).
Sourcepub fn as_hm_s(&self) -> Direction
Available on crate feature alloc only.
pub fn as_hm_s(&self) -> Direction
alloc only.Returns Velocity as hectometres per second (hm/s) (10² m/s).
Sourcepub fn as_hectometres_second(&self) -> Direction
Available on crate feature alloc only.
pub fn as_hectometres_second(&self) -> Direction
alloc only.Returns Velocity as hectometres per second (hm/s) (10² m/s).
Sourcepub fn in_dam_s(d: Direction) -> Self
Available on crate feature alloc only.
pub fn in_dam_s(d: Direction) -> Self
alloc only.New Velocity in dekametres per second (dam/s) (10² m/s).
Sourcepub fn in_dekametres_second(d: Direction) -> Self
Available on crate feature alloc only.
pub fn in_dekametres_second(d: Direction) -> Self
alloc only.New Velocity in dekametres per second (dam/s).
Sourcepub fn as_dam_s(&self) -> Direction
Available on crate feature alloc only.
pub fn as_dam_s(&self) -> Direction
alloc only.Returns Velocity as dekametres per second (dam/s) (10² m/s).
Sourcepub fn as_dekametres_second(&self) -> Direction
Available on crate feature alloc only.
pub fn as_dekametres_second(&self) -> Direction
alloc only.Returns Velocity as dekametres per second (dam/s) (10² m/s).
Sourcepub const fn in_m_s(d: Direction) -> Self
Available on crate feature alloc only.
pub const fn in_m_s(d: Direction) -> Self
alloc only.New Velocity in metres per second (m/s) (base unit, 10⁰ m/s).
Sourcepub const fn in_metres_second(d: Direction) -> Self
Available on crate feature alloc only.
pub const fn in_metres_second(d: Direction) -> Self
alloc only.New Velocity in metres per second (m/s) (base unit, 10⁰ m/s).
Sourcepub const fn as_m_s(&self) -> Direction
Available on crate feature alloc only.
pub const fn as_m_s(&self) -> Direction
alloc only.Returns Velocity as metres per second (m/s) (base unit, 10⁰ m/s).
Sourcepub const fn as_metres_second(&self) -> Direction
Available on crate feature alloc only.
pub const fn as_metres_second(&self) -> Direction
alloc only.Returns Velocity as metres per second (m/s) (base unit, 10⁰ m/s).
Sourcepub fn in_dm_s(d: Direction) -> Self
Available on crate feature alloc only.
pub fn in_dm_s(d: Direction) -> Self
alloc only.New Velocity in decimetres per second (dm/s) (10⁻¹ m/s).
Sourcepub fn in_decimetres_second(d: Direction) -> Self
Available on crate feature alloc only.
pub fn in_decimetres_second(d: Direction) -> Self
alloc only.New Velocity in decimetres per second (dm/s).
Sourcepub fn as_dm_s(&self) -> Direction
Available on crate feature alloc only.
pub fn as_dm_s(&self) -> Direction
alloc only.Returns Velocity as decimetres per second (dm/s) (10⁻¹ m/s).
Sourcepub fn as_decimetres_second(&self) -> Direction
Available on crate feature alloc only.
pub fn as_decimetres_second(&self) -> Direction
alloc only.Returns Velocity as decimetres per second (dm/s) (10⁻¹ m/s).
Sourcepub fn in_cm_s(d: Direction) -> Self
Available on crate feature alloc only.
pub fn in_cm_s(d: Direction) -> Self
alloc only.New Velocity in centimetres per second (cm/s) (10⁻² m/s).
Sourcepub fn in_centimetres_second(d: Direction) -> Self
Available on crate feature alloc only.
pub fn in_centimetres_second(d: Direction) -> Self
alloc only.New Velocity in centimetres per second (cm/s).
Sourcepub fn as_cm_s(&self) -> Direction
Available on crate feature alloc only.
pub fn as_cm_s(&self) -> Direction
alloc only.Returns Velocity as centimetres per second (cm/s) (10⁻² m/s).
Sourcepub fn as_centimetres_second(&self) -> Direction
Available on crate feature alloc only.
pub fn as_centimetres_second(&self) -> Direction
alloc only.Returns Velocity as centimetres per second (cm/s) (10⁻² m/s).
Sourcepub fn in_mm_s(d: Direction) -> Self
Available on crate feature alloc only.
pub fn in_mm_s(d: Direction) -> Self
alloc only.New Velocity in millimetres per second (mm/s) (10⁻³ m/s).
Sourcepub fn in_millimetres_second(d: Direction) -> Self
Available on crate feature alloc only.
pub fn in_millimetres_second(d: Direction) -> Self
alloc only.New Velocity in millimetres per second (mm/s).
Sourcepub fn as_mm_s(&self) -> Direction
Available on crate feature alloc only.
pub fn as_mm_s(&self) -> Direction
alloc only.Returns Velocity as millimetres per second (mm/s) (10⁻³ m/s).
Sourcepub fn as_millimetres_second(&self) -> Direction
Available on crate feature alloc only.
pub fn as_millimetres_second(&self) -> Direction
alloc only.Returns Velocity as millimetres per second (mm/s) (10⁻³ m/s).
Sourcepub fn in_um_s(d: Direction) -> Self
Available on crate feature alloc only.
pub fn in_um_s(d: Direction) -> Self
alloc only.New Velocity in micrometres per second (µm/s) (10⁻⁶ m/s).
Sourcepub fn in_micrometres_second(d: Direction) -> Self
Available on crate feature alloc only.
pub fn in_micrometres_second(d: Direction) -> Self
alloc only.New Velocity in micrometres per second (µm/s).
Sourcepub fn as_um_s(&self) -> Direction
Available on crate feature alloc only.
pub fn as_um_s(&self) -> Direction
alloc only.Returns Velocity as micrometres per second (µm/s) (10⁻⁶ m/s).
Sourcepub fn as_micrometres_second(&self) -> Direction
Available on crate feature alloc only.
pub fn as_micrometres_second(&self) -> Direction
alloc only.Returns Velocity as micrometres per second (µm/s) (10⁻⁶ m/s).
Sourcepub fn in_nm_s(d: Direction) -> Self
Available on crate feature alloc only.
pub fn in_nm_s(d: Direction) -> Self
alloc only.New Velocity in nanometres per second (nm/s) (10⁻⁹ m/s).
Sourcepub fn in_nanometres_second(d: Direction) -> Self
Available on crate feature alloc only.
pub fn in_nanometres_second(d: Direction) -> Self
alloc only.New Velocity in nanometres per second (nm/s).
Sourcepub fn as_nm_s(&self) -> Direction
Available on crate feature alloc only.
pub fn as_nm_s(&self) -> Direction
alloc only.Returns Velocity as nanometres per second (nm/s) (10⁻⁹ m/s).
Sourcepub fn as_nanometres_second(&self) -> Direction
Available on crate feature alloc only.
pub fn as_nanometres_second(&self) -> Direction
alloc only.Returns Velocity as nanometres per second (nm/s) (10⁻⁹ m/s).
Sourcepub fn in_pm_s(d: Direction) -> Self
Available on crate feature alloc only.
pub fn in_pm_s(d: Direction) -> Self
alloc only.New Velocity in picometres per second (pm/s) (10⁻¹² m/s).
Sourcepub fn in_picometres_second(d: Direction) -> Self
Available on crate feature alloc only.
pub fn in_picometres_second(d: Direction) -> Self
alloc only.New Velocity in picometres per second (pm/s).
Sourcepub fn as_pm_s(&self) -> Direction
Available on crate feature alloc only.
pub fn as_pm_s(&self) -> Direction
alloc only.Returns Velocity as picometres per second (pm/s) (10⁻¹² m/s).
Sourcepub fn as_picometres_second(&self) -> Direction
Available on crate feature alloc only.
pub fn as_picometres_second(&self) -> Direction
alloc only.Returns Velocity as picometres per second (pm/s) (10⁻¹² m/s).
Sourcepub fn in_fm_s(d: Direction) -> Self
Available on crate feature alloc only.
pub fn in_fm_s(d: Direction) -> Self
alloc only.New Velocity in femtometres per second (fm/s) (10⁻¹⁵ m/s).
Sourcepub fn in_femtometres_second(d: Direction) -> Self
Available on crate feature alloc only.
pub fn in_femtometres_second(d: Direction) -> Self
alloc only.New Velocity in femtometres per second (fm/s).
Sourcepub fn as_fm_s(&self) -> Direction
Available on crate feature alloc only.
pub fn as_fm_s(&self) -> Direction
alloc only.Returns Velocity as femtometres per second (fm/s) (10⁻¹⁵ m/s).
Sourcepub fn as_femtometres_second(&self) -> Direction
Available on crate feature alloc only.
pub fn as_femtometres_second(&self) -> Direction
alloc only.Returns Velocity as femtometres per second (fm/s) (10⁻¹⁵ m/s).
Sourcepub fn in_am_s(d: Direction) -> Self
Available on crate feature alloc only.
pub fn in_am_s(d: Direction) -> Self
alloc only.New Velocity in attometres per second (am/s) (10⁻¹⁸ m/s).
Sourcepub fn in_attometres_second(d: Direction) -> Self
Available on crate feature alloc only.
pub fn in_attometres_second(d: Direction) -> Self
alloc only.New Velocity in attometres per second (am/s).
Sourcepub fn as_am_s(&self) -> Direction
Available on crate feature alloc only.
pub fn as_am_s(&self) -> Direction
alloc only.Returns Velocity as attometres per second (am/s) (10⁻¹⁸ m/s).
Sourcepub fn as_attometres_second(&self) -> Direction
Available on crate feature alloc only.
pub fn as_attometres_second(&self) -> Direction
alloc only.Returns Velocity as attometres per second (am/s) (10⁻¹⁸ m/s).
Sourcepub fn in_zm_s(d: Direction) -> Self
Available on crate feature alloc only.
pub fn in_zm_s(d: Direction) -> Self
alloc only.New Velocity in zeptometres per second (zm/s) (10⁻²¹ m/s).
Sourcepub fn in_zeptometres_second(d: Direction) -> Self
Available on crate feature alloc only.
pub fn in_zeptometres_second(d: Direction) -> Self
alloc only.New Velocity in zeptometres per second (zm/s).
Sourcepub fn as_zm_s(&self) -> Direction
Available on crate feature alloc only.
pub fn as_zm_s(&self) -> Direction
alloc only.Returns Velocity as zeptometres per second (zm/s) (10⁻²¹ m/s).
Sourcepub fn as_zeptometres_second(&self) -> Direction
Available on crate feature alloc only.
pub fn as_zeptometres_second(&self) -> Direction
alloc only.Returns Velocity as zeptometres per second (zm/s) (10⁻²¹ m/s).
Sourcepub fn in_ym_s(d: Direction) -> Self
Available on crate feature alloc only.
pub fn in_ym_s(d: Direction) -> Self
alloc only.New Velocity in yoctometres per second (ym/s) (10⁻²⁴ m/s).
Sourcepub fn in_yoctometres_second(d: Direction) -> Self
Available on crate feature alloc only.
pub fn in_yoctometres_second(d: Direction) -> Self
alloc only.New Velocity in yoctometres per second (ym/s).
Sourcepub fn as_ym_s(&self) -> Direction
Available on crate feature alloc only.
pub fn as_ym_s(&self) -> Direction
alloc only.Returns Velocity as yoctometres per second (ym/s) (10⁻²⁴ m/s).
Sourcepub fn as_yoctometres_second(&self) -> Direction
Available on crate feature alloc only.
pub fn as_yoctometres_second(&self) -> Direction
alloc only.Returns Velocity as yoctometres per second (ym/s) (10⁻²⁴ m/s).
Sourcepub fn in_rm_s(d: Direction) -> Self
Available on crate feature alloc only.
pub fn in_rm_s(d: Direction) -> Self
alloc only.New Velocity in rontometres per second (rm/s) (10⁻²⁷ m/s).
Sourcepub fn in_rontometres_second(d: Direction) -> Self
Available on crate feature alloc only.
pub fn in_rontometres_second(d: Direction) -> Self
alloc only.New Velocity in rontometres per second (rm/s).
Sourcepub fn as_rm_s(&self) -> Direction
Available on crate feature alloc only.
pub fn as_rm_s(&self) -> Direction
alloc only.Returns Velocity as rontometres per second (rm/s) (10⁻²⁷ m/s).
Sourcepub fn as_rontometres_second(&self) -> Direction
Available on crate feature alloc only.
pub fn as_rontometres_second(&self) -> Direction
alloc only.Returns Velocity as rontometres per second (rm/s) (10⁻²⁷ m/s).
Sourcepub fn in_qm_s(d: Direction) -> Self
Available on crate feature alloc only.
pub fn in_qm_s(d: Direction) -> Self
alloc only.New Velocity in quectometres per second (qm/s) (10⁻³⁰ m/s).
Sourcepub fn in_quectometres_second(d: Direction) -> Self
Available on crate feature alloc only.
pub fn in_quectometres_second(d: Direction) -> Self
alloc only.New Velocity in quectometres per second (qm/s).
Sourcepub fn as_qm_s(&self) -> Direction
Available on crate feature alloc only.
pub fn as_qm_s(&self) -> Direction
alloc only.Returns Velocity as quectometres per second (qm/s) (10⁻³⁰ m/s).
Sourcepub fn as_quectometres_second(&self) -> Direction
Available on crate feature alloc only.
pub fn as_quectometres_second(&self) -> Direction
alloc only.Returns Velocity as quectometres per second (qm/s) (10⁻³⁰ m/s).
Trait Implementations§
Source§impl Unit for Velocity
Available on crate feature alloc only.
impl Unit for Velocity
alloc only.impl Copy for Velocity
alloc only.