Expand description
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);Enums§
- Temperature
Error - Erros possíveis ao converter temperaturas
Functions§
- celsius_
to_ fahrenheit - Converte Celsius para Fahrenheit.
- celsius_
to_ kelvin - Converte Celsius para Kelvin.
- fahrenheit_
to_ celsius - Converte Fahrenheit para Celsius.
- kelvin_
to_ celsius - Converte Kelvin para Celsius.