temperature_converter 0.1.0

Biblioteca Rust para converter temperaturas entre Celsius, Fahrenheit e Kelvin
Documentation
  • Coverage
  • 100%
    7 out of 7 items documented1 out of 6 items with examples
  • Size
  • Source code size: 5.54 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 410.91 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 22s Average build duration of successful builds.
  • all releases: 20s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • amarcelo

temperature_converter — biblioteca para conversão de temperaturas.

Exemplos

use temperature_converter::{celsius_to_kelvin, fahrenheit_to_celsius};

assert_eq!(celsius_to_kelvin(0.0).unwrap(), 273.15);
// função que retorna f64 puro, não Result:
assert_eq!(fahrenheit_to_celsius(32.0), 0.0);