#converter #temperature #weight #distance

utility_converter

This Rust lib offering accurate conversions for temperature, weight, and distance

2 releases

0.1.1 Dec 11, 2024
0.1.0 Dec 11, 2024

#9 in #weight

Download history 260/week @ 2024-12-08 23/week @ 2024-12-15

283 downloads per month

MIT license

32KB
370 lines

Utility Converter

GitHub repo size GitHub language count GitHub forks

This Rust lib offering accurate conversions for temperature, weight, and distance.ses)

Instalation

cargo add utility_converter

Examples

use utility_converter::converter;

fn main() {
    let fahrenheit: f64 = converter::celsius_to_fahrenheit(25.0);
    ...
}

Other functions

Temperature

  • celsius_to_fahrenheit — Convert from Celsius to Fahrenheit.
  • celsius_to_kelvin — Convert from Celsius to Kelvin.
  • fahrenheit_to_celsius — Convert from Fahrenheit to Celsius.
  • fahrenheit_to_kelvin — Convert from Fahrenheit to Kelvin.
  • kelvin_to_celsius — Convert from Kelvin to Celsius.
  • kelvin_to_fahrenheit — Convert from Kelvin to Fahrenheit.

Weight

  • grams_to_kilograms - Convert from Grams to Kilograms.
  • grams_to_tonnes - Convert from Grams to Tonnes.
  • grams_to_pounds - Convert from Grams to Pounds.
  • kilograms_to_grams - Convert from Kilograms to Grams.
  • kilograms_to_tonnes - Convert from Kilograms to Tonnes.
  • kilograms_to_pounds - Convert from Kilograms to Pounds.
  • tonnes_to_grams - Convert from Tonnes to Grams.
  • tonnes_to_kilograms - Convert from Tonnes to Kilograms.
  • tonnes_to_pounds - Convert from Tonnes to Pounds.
  • pounds_to_grams - Convert from Pounds to Grams.
  • pounds_to_kilograms - Convert from Pounds to Kilograms.
  • pounds_to_tonnes - Convert from Pounds to Tonnes.

Distance

  • centimeters_to_meters - Convert from Centimeters to Meters.
  • centimeters_to_kilometers - Convert from Centimeters to Kilometers.
  • centimeters_to_inches - Convert from Centimeters to Inches.
  • centimeters_to_miles - Convert from Centimeters to Miles.
  • meters_to_centimeters - Convert from Meters to Centimeters.
  • meters_to_kilometers - Convert from Meters to Kilometers.
  • meters_to_inches - Convert from Meters to Inches.
  • meters_to_miles - Convert from Meters to Miles.
  • kilometers_to_centimeters - Convert from Kilometers to Centimeters.
  • kilometers_to_meters - Convert from Kilometers to Meters.
  • kilometers_to_inches - Convert from Kilometers to Inches.
  • kilometers_to_miles - Convert from Kilometers to Miles.
  • inches_to_centimeters - Convert from Inches to Centimeters.
  • inches_to_meters - Convert from Inches to Meters.
  • inches_to_kilometers - Convert from Inches to Kilometers.
  • inches_to_miles - Convert from Inches to Miles.
  • miles_to_centimeters - Convert from Miles to Centimeters.
  • miles_to_meters - Convert from Miles to Meters.
  • miles_to_kilometers - Convert from Miles to Kilometers.
  • miles_to_inches - Convert from Miles to Inches.

License

Licensed under either of Apache License, Version 2.0 or MIT license at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this crate by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

No runtime deps