Skip to content

Commit c6ab1f0

Browse files
feat: add comprehensive weight unit conversion module (#1012)
1 parent 73c7483 commit c6ab1f0

File tree

3 files changed

+925
-0
lines changed

3 files changed

+925
-0
lines changed

DIRECTORY.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@
9393
* [Speed](https://github.com/TheAlgorithms/Rust/blob/master/src/conversions/speed.rs)
9494
* [Time Units](https://github.com/TheAlgorithms/Rust/blob/master/src/conversions/time_units.rs)
9595
* [Temperature](https://github.com/TheAlgorithms/Rust/blob/master/src/conversions/temperature.rs)
96+
* [Weight](https://github.com/TheAlgorithms/Rust/blob/master/src/conversions/weight.rs)
9697
* Data Structures
9798
* [AVL Tree](https://github.com/TheAlgorithms/Rust/blob/master/src/data_structures/avl_tree.rs)
9899
* [B-Tree](https://github.com/TheAlgorithms/Rust/blob/master/src/data_structures/b_tree.rs)

src/conversions/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ mod roman_numerals;
2121
mod speed;
2222
mod temperature;
2323
mod time_units;
24+
mod weight;
2425

2526
pub use self::binary_to_decimal::binary_to_decimal;
2627
pub use self::binary_to_hexadecimal::binary_to_hexadecimal;
@@ -47,3 +48,4 @@ pub use self::roman_numerals::{int_to_roman, roman_to_int};
4748
pub use self::speed::{convert_speed, SpeedUnit};
4849
pub use self::temperature::{convert_temperature, TemperatureUnit};
4950
pub use self::time_units::convert_time;
51+
pub use self::weight::{convert_weight, WeightUnit};

0 commit comments

Comments
 (0)