unit-converter-rust 0.1.0

Crate for unit convertation
Documentation
  • Coverage
  • 100%
    6 out of 6 items documented6 out of 6 items with examples
  • Size
  • Source code size: 3.08 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.14 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • VladislavRustDev

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);