diff options
| author | sam-anthony <samanthony6@protonmail.com> | 2022-01-26 06:37:29 -0330 |
|---|---|---|
| committer | sam-anthony <samanthony6@protonmail.com> | 2022-01-26 06:37:29 -0330 |
| commit | b45ddda0fda44ffb5e4ffbfe94b4d293b06d883e (patch) | |
| tree | b0167611d285da4302b575ae35f93ee4902eb3dd /src/temperature.rs | |
| parent | eb55242f08fcd4a9a3fdcc8de1110999614c8813 (diff) | |
| download | volute-b45ddda0fda44ffb5e4ffbfe94b4d293b06d883e.zip | |
basic input handling
Diffstat (limited to 'src/temperature.rs')
| -rw-r--r-- | src/temperature.rs | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/temperature.rs b/src/temperature.rs deleted file mode 100644 index 2eac48d..0000000 --- a/src/temperature.rs +++ /dev/null @@ -1,11 +0,0 @@ -pub struct Temperature(f64); // Base unit is kelvin - -impl Temperature { - pub fn from_kelvin(kelvin: f64) -> Temperature { - Temperature(kelvin) - } - - pub fn as_kelvin(&self) -> f64 { - self.0 - } -} |