Skip to content

Commit b7e7d2c

Browse files
feat: add comprehensive pressure unit conversion (#1010)
1 parent 8ef48a0 commit b7e7d2c

File tree

3 files changed

+478
-0
lines changed

3 files changed

+478
-0
lines changed

DIRECTORY.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@
8585
* [Octal to Decimal](https://github.com/TheAlgorithms/Rust/blob/master/src/conversions/octal_to_decimal.rs)
8686
* [Octal to Hexadecimal](https://github.com/TheAlgorithms/Rust/blob/master/src/conversions/octal_to_hexadecimal.rs)
8787
* [Order of Magnitude Conversion](https://github.com/TheAlgorithms/Rust/blob/master/src/conversions/order_of_magnitude_conversion.rs)
88+
* [Pressure](https://github.com/TheAlgorithms/Rust/blob/master/src/conversions/pressure.rs)
8889
* [Rectangular to Polar](https://github.com/TheAlgorithms/Rust/blob/master/src/conversions/rectangular_to_polar.rs)
8990
* [RGB-CMYK Conversion](https://github.com/TheAlgorithms/Rust/blob/master/src/conversions/rgb_cmyk_conversion.rs)
9091
* [RGB-HSV Conversion](https://github.com/TheAlgorithms/Rust/blob/master/src/conversions/rgb_hsv_conversion.rs)

src/conversions/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ mod octal_to_binary;
1313
mod octal_to_decimal;
1414
mod octal_to_hexadecimal;
1515
mod order_of_magnitude_conversion;
16+
mod pressure;
1617
mod rectangular_to_polar;
1718
mod rgb_cmyk_conversion;
1819
mod rgb_hsv_conversion;
@@ -38,6 +39,7 @@ pub use self::octal_to_hexadecimal::octal_to_hexadecimal;
3839
pub use self::order_of_magnitude_conversion::{
3940
convert_metric_length, metric_length_conversion, MetricLengthUnit,
4041
};
42+
pub use self::pressure::{convert_pressure, PressureUnit};
4143
pub use self::rectangular_to_polar::rectangular_to_polar;
4244
pub use self::rgb_cmyk_conversion::rgb_to_cmyk;
4345
pub use self::rgb_hsv_conversion::{hsv_to_rgb, rgb_to_hsv, ColorError, Hsv, Rgb};

0 commit comments

Comments
 (0)