Skip to content

Commit 38024b0

Browse files
feat: add order of magnitude length conversion (#985)
1 parent 0573dbb commit 38024b0

File tree

3 files changed

+471
-0
lines changed

3 files changed

+471
-0
lines changed

DIRECTORY.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@
7777
* [Octal to Binary](https://github.com/TheAlgorithms/Rust/blob/master/src/conversions/octal_to_binary.rs)
7878
* [Octal to Decimal](https://github.com/TheAlgorithms/Rust/blob/master/src/conversions/octal_to_decimal.rs)
7979
* [Octal to Hexadecimal](https://github.com/TheAlgorithms/Rust/blob/master/src/conversions/octal_to_hexadecimal.rs)
80+
* [Order of Magnitude Conversion](https://github.com/TheAlgorithms/Rust/blob/master/src/conversions/order_of_magnitude_conversion.rs)
8081
* [RGB-CMYK Conversion](https://github.com/TheAlgorithms/Rust/blob/master/src/conversions/rgb_cmyk_conversion.rs)
8182
* Data Structures
8283
* [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)