diff --git a/src/units.rs b/src/units.rs index dc6415e..17695cb 100644 --- a/src/units.rs +++ b/src/units.rs @@ -8,7 +8,7 @@ pub enum UnitType { Area, Volume, Mass, - Information, + DigitalStorage, Energy, Power, Pressure, @@ -124,40 +124,40 @@ create_units!( ShortTon: (Mass, d128!(907184.74)), LongTon: (Mass, d128!(1016046.9088)), - Bit: (Information, d128!(1)), - Kilobit: (Information, d128!(1000)), - Megabit: (Information, d128!(1000000)), - Gigabit: (Information, d128!(1000000000)), - Terabit: (Information, d128!(1000000000000)), - Petabit: (Information, d128!(1000000000000000)), - Exabit: (Information, d128!(1000000000000000000)), - Zettabit: (Information, d128!(1000000000000000000000)), - Yottabit: (Information, d128!(1000000000000000000000000)), - Kibibit: (Information, d128!(1024)), - Mebibit: (Information, d128!(1048576)), - Gibibit: (Information, d128!(1073741824)), - Tebibit: (Information, d128!(1099511627776)), - Pebibit: (Information, d128!(1125899906842624)), - Exbibit: (Information, d128!(1152921504606846976)), - Zebibit: (Information, d128!(1180591620717411303424)), - Yobibit: (Information, d128!(1208925819614629174706176)), - Byte: (Information, d128!(8)), - Kilobyte: (Information, d128!(8000)), - Megabyte: (Information, d128!(8000000)), - Gigabyte: (Information, d128!(8000000000)), - Terabyte: (Information, d128!(8000000000000)), - Petabyte: (Information, d128!(8000000000000000)), - Exabyte: (Information, d128!(8000000000000000000)), - Zettabyte: (Information, d128!(8000000000000000000000)), - Yottabyte: (Information, d128!(8000000000000000000000000)), - Kibibyte: (Information, d128!(8192)), - Mebibyte: (Information, d128!(8388608)), - Gibibyte: (Information, d128!(8589934592)), - Tebibyte: (Information, d128!(8796093022208)), - Pebibyte: (Information, d128!(9007199254740992)), - Exbibyte: (Information, d128!(9223372036854775808)), - Zebibyte: (Information, d128!(9444732965739290427392)), - Yobibyte: (Information, d128!(9671406556917033397649408)), + Bit: (DigitalStorage, d128!(1)), + Kilobit: (DigitalStorage, d128!(1000)), + Megabit: (DigitalStorage, d128!(1000000)), + Gigabit: (DigitalStorage, d128!(1000000000)), + Terabit: (DigitalStorage, d128!(1000000000000)), + Petabit: (DigitalStorage, d128!(1000000000000000)), + Exabit: (DigitalStorage, d128!(1000000000000000000)), + Zettabit: (DigitalStorage, d128!(1000000000000000000000)), + Yottabit: (DigitalStorage, d128!(1000000000000000000000000)), + Kibibit: (DigitalStorage, d128!(1024)), + Mebibit: (DigitalStorage, d128!(1048576)), + Gibibit: (DigitalStorage, d128!(1073741824)), + Tebibit: (DigitalStorage, d128!(1099511627776)), + Pebibit: (DigitalStorage, d128!(1125899906842624)), + Exbibit: (DigitalStorage, d128!(1152921504606846976)), + Zebibit: (DigitalStorage, d128!(1180591620717411303424)), + Yobibit: (DigitalStorage, d128!(1208925819614629174706176)), + Byte: (DigitalStorage, d128!(8)), + Kilobyte: (DigitalStorage, d128!(8000)), + Megabyte: (DigitalStorage, d128!(8000000)), + Gigabyte: (DigitalStorage, d128!(8000000000)), + Terabyte: (DigitalStorage, d128!(8000000000000)), + Petabyte: (DigitalStorage, d128!(8000000000000000)), + Exabyte: (DigitalStorage, d128!(8000000000000000000)), + Zettabyte: (DigitalStorage, d128!(8000000000000000000000)), + Yottabyte: (DigitalStorage, d128!(8000000000000000000000000)), + Kibibyte: (DigitalStorage, d128!(8192)), + Mebibyte: (DigitalStorage, d128!(8388608)), + Gibibyte: (DigitalStorage, d128!(8589934592)), + Tebibyte: (DigitalStorage, d128!(8796093022208)), + Pebibyte: (DigitalStorage, d128!(9007199254740992)), + Exbibyte: (DigitalStorage, d128!(9223372036854775808)), + Zebibyte: (DigitalStorage, d128!(9444732965739290427392)), + Yobibyte: (DigitalStorage, d128!(9671406556917033397649408)), Millijoule: (Energy, d128!(0.001)), Joule: (Energy, d128!(1)),