#unit #converter #meter #convert #minutes #hours #kilometers

unit-converter-rust

Crate for unit convertation

1 unstable release

Uses old Rust 2015

new 0.1.0 Nov 26, 2024

#5 in #minutes

MIT license

4KB

Unit Converter Library

A simple library to convert between various units of measurement. It currently supports conversions between:

  • Kilometers and meters
  • Kilometers and miles
  • Hours and minutes
  • Minutes and seconds

Example Usage

use unit_converter::*;

// Convert 1 kilometer to meters
let meters = km2m(1.0);
assert_eq!(meters, 1000.0);

No runtime deps