temperature
Temperature, a library (and executable) written in Rust converts Temperature Units "Celsius", "Fahrenheit", "Kelvin", "Rankine" From eachother.
Note: A working executable can be compiled from example/temperature.rs
Usage
As Library
See examples at examples/simple.rs
Compile and run standalone program
Note: A working executable can be compiled from example/temperature
Compile and install
$ cargo build --release --example temperature
$ chmod 711 ./target/release/examples/temperature
\# mv ./target/release/examples/temperature /usr/local/bin/Temperature takes three arguments without dash.
- The input temperature
- The input temperature unit
- The desired output temperature unit
Execute
$ temperature {temp} {C|F|K|R} {C|F|K|R} Example
$ temperature 32.9 C FContributing
- /r/rust Community on reddit
- https://github.com/fmease/ providing a better trait implementation using macros