Struct rs_es::units::Distance
[−]
[src]
pub struct Distance { // some fields omitted }
Distance, both an amount and a unit
Methods
impl Distance
[src]
fn new(amt: f64, unit: DistanceUnit) -> Distance
Trait Implementations
impl Debug for Distance
[src]
impl Default for Distance
[src]
impl Serialize for Distance
[src]
fn serialize<S>(&self, serializer: &mut S) -> Result<(), S::Error> where S: Serializer
Serializes this value into this serializer.