Skip to content

Commit 2427b80

Browse files
feat: add order of magnitude length conversion
1 parent 35a5743 commit 2427b80

3 files changed

Lines changed: 471 additions & 0 deletions

File tree

DIRECTORY.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@
7676
* [Octal to Binary](https://github.com/TheAlgorithms/Rust/blob/master/src/conversions/octal_to_binary.rs)
7777
* [Octal to Decimal](https://github.com/TheAlgorithms/Rust/blob/master/src/conversions/octal_to_decimal.rs)
7878
* [Octal to Hexadecimal](https://github.com/TheAlgorithms/Rust/blob/master/src/conversions/octal_to_hexadecimal.rs)
79+
* [Order of Magnitude Conversion](https://github.com/TheAlgorithms/Rust/blob/master/src/conversions/order_of_magnitude_conversion.rs)
7980
* [RGB-CMYK Conversion](https://github.com/TheAlgorithms/Rust/blob/master/src/conversions/rgb_cmyk_conversion.rs)
8081
* Data Structures
8182
* [AVL Tree](https://github.com/TheAlgorithms/Rust/blob/master/src/data_structures/avl_tree.rs)

src/conversions/mod.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ mod length_conversion;
1111
mod octal_to_binary;
1212
mod octal_to_decimal;
1313
mod octal_to_hexadecimal;
14+
mod order_of_magnitude_conversion;
1415
mod rgb_cmyk_conversion;
16+
1517
pub use self::binary_to_decimal::binary_to_decimal;
1618
pub use self::binary_to_hexadecimal::binary_to_hexadecimal;
1719
pub use self::binary_to_octal::binary_to_octal;
@@ -25,4 +27,7 @@ pub use self::length_conversion::length_conversion;
2527
pub use self::octal_to_binary::octal_to_binary;
2628
pub use self::octal_to_decimal::octal_to_decimal;
2729
pub use self::octal_to_hexadecimal::octal_to_hexadecimal;
30+
pub use self::order_of_magnitude_conversion::{
31+
convert_metric_length, metric_length_conversion, MetricLengthUnit,
32+
};
2833
pub use self::rgb_cmyk_conversion::rgb_to_cmyk;

0 commit comments

Comments
 (0)