pub struct Velocity {
pub meters_per_second: f64,
pub original_unit: String,
}Expand description
Poka-Yoke velocity with mandatory explicit units [56].
Prevents unit confusion by requiring explicit unit strings in YAML.
§YAML Examples
separation_velocity: "10.0 m/s"
orbital_velocity: "7.8 km/s"Fields§
§meters_per_second: f64Value in meters per second (canonical unit).
original_unit: StringOriginal unit string for display.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Velocity
impl<'de> Deserialize<'de> for Velocity
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Velocity
impl RefUnwindSafe for Velocity
impl Send for Velocity
impl Sync for Velocity
impl Unpin for Velocity
impl UnsafeUnpin for Velocity
impl UnwindSafe for Velocity
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