- Use Rust edition
2018. - Update
err-derive.
- Added stable
try_fromsupport requiring Rust>= 1.34.0. - Migrate to fixed
std::errorusingerr-derive.
- Added stable
i128_typesupport requiring Rust>= 1.26.0.
- Works now on stable Rust by reimplementing the
try_fromfeature. - Added
nightlyfeature enablingtry_fromandi128_typesupport. This replaces the reimplementation oftry_fromwith a reexport. - Simplified code by using
binary_search_by().
- Added explicit localization support.
- Using new
TryFromtrait itemError. - Increased code reuse with internal
super::Signifixtype. - Binary
SYMBOLSand thus the binarysymbol()method now include thei. - Both
symbol()methods now returnOption<&str>instead ofOption<char>. - Using
UpperExpwithout plus sign forError.
- Added common
Error/Resulttypes for themetric/binarymodules. - Refactored crate into
metric/binarymodules. - Defined Signifix default notation with binary prefix (
1.234 Ki,1 023 Ki). - Replaced
f64divisions by multiplications whenever the inverse is known.
- Changed license from LGPL-3.0 to Fair.
- Refactored examples and documentation.
- Reassigned alternate flag to alternate notation, thanks to padding support.
- Complemented
DEF_MIN_LEN/DEF_MAX_LENwithALT_MIN_LEN/ALT_MAX_LEN. - Renamed
MAX_LENtoDEF_MAX_LENandMIN_LENtoDEF_MAX_LEN. - Wrapped return value of
symbol()method inOption. - Wrapped elements of
SYMBOLSinOptionwith' 'becomingNone. - Renamed
SYMBOLtoSYMBOLSandFACTORtoFACTORS. - Defined Signifix default (
1.234 k) and alternate (1k234) notation with metric prefix. - Added
integer(),fractional(), andparts()methods. - Fixed missing padding support via fill/alignment formatting parameters.
- Covered
i128/u128. - Replaced public fields by methods.
- Shrank
Signifixtype from 24 to 4 B. - Implemented
Ordtrait. - Added public constants
MIN_LENandMAX_LEN. - Added public constants
SYMBOLandFACTOR.
- Covered
isize/usizeandi64/u64. - Replaced methods by public fields.
- Added
Error::Nanvariant.
- Initial release