Skip to content

Commit dc9fc65

Browse files
feat: add comprehensive weight unit conversion module
1 parent fb5784f commit dc9fc65

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
@@ -91,6 +91,7 @@
9191
* [Speed](https://github.com/TheAlgorithms/Rust/blob/master/src/conversions/speed.rs)
9292
* [Time Units](https://github.com/TheAlgorithms/Rust/blob/master/src/conversions/time_units.rs)
9393
* [Temperature](https://github.com/TheAlgorithms/Rust/blob/master/src/conversions/temperature.rs)
94+
* [Weight](https://github.com/TheAlgorithms/Rust/blob/master/src/conversions/weight.rs)
9495
* Data Structures
9596
* [AVL Tree](https://github.com/TheAlgorithms/Rust/blob/master/src/data_structures/avl_tree.rs)
9697
* [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
@@ -20,6 +20,7 @@ mod roman_numerals;
2020
mod speed;
2121
mod temperature;
2222
mod time_units;
23+
mod weight;
2324

2425
pub use self::binary_to_decimal::binary_to_decimal;
2526
pub use self::binary_to_hexadecimal::binary_to_hexadecimal;
@@ -45,3 +46,4 @@ pub use self::roman_numerals::{int_to_roman, roman_to_int};
4546
pub use self::speed::{convert_speed, SpeedUnit};
4647
pub use self::temperature::{convert_temperature, TemperatureUnit};
4748
pub use self::time_units::convert_time;
49+
pub use self::weight::{convert_weight, WeightUnit};

0 commit comments

Comments
 (0)