diff options
| author | Sam Anthony <sam@samanthony.xyz> | 2023-02-05 13:35:23 -0330 |
|---|---|---|
| committer | Sam Anthony <sam@samanthony.xyz> | 2023-02-05 13:35:23 -0330 |
| commit | a07f4ff774dd0ba0da3a502909d078ccf3e0c63f (patch) | |
| tree | 47b76316dc08bf266680ff7893f7a430bc90a1c4 /src/pressure/unit.rs | |
| parent | 3a1e9d081cc299a0ce3e950282464986a36376d9 (diff) | |
| download | volute-rust.zip | |
pressurerust
Diffstat (limited to 'src/pressure/unit.rs')
| -rw-r--r-- | src/pressure/unit.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/pressure/unit.rs b/src/pressure/unit.rs new file mode 100644 index 0000000..6e246a3 --- /dev/null +++ b/src/pressure/unit.rs @@ -0,0 +1,11 @@ +#[derive(Default)] +pub enum Unit { + #[default] + Kilopascal, + Bar, + Psi, +} + +impl Unit { + pub const ALL: [Self; 3] = [Self::Kilopascal, Self::Bar, Self::Psi]; +} |