aboutsummaryrefslogtreecommitdiffstats
path: root/src/pressure/bar.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/pressure/bar.rs')
-rw-r--r--src/pressure/bar.rs15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/pressure/bar.rs b/src/pressure/bar.rs
new file mode 100644
index 0000000..63188c7
--- /dev/null
+++ b/src/pressure/bar.rs
@@ -0,0 +1,15 @@
+use super::{Kilopascal, Psi};
+
+pub struct Bar(pub f64);
+
+impl From<Kilopascal> for Bar {
+ fn from(value: Kilopascal) -> Self {
+ value.into()
+ }
+}
+
+impl From<Psi> for Bar {
+ fn from(value: Psi) -> Self {
+ Kilopascal::from(value).into()
+ }
+}