- Use Rust edition
2018
. - Update
err-derive
.
- Added stable
try_from
support requiring Rust>= 1.34.0
. - Migrate to fixed
std::error
usingerr-derive
.
- Added stable
i128_type
support requiring Rust>= 1.26.0
.
- Works now on stable Rust by reimplementing the
try_from
feature. - Added
nightly
feature enablingtry_from
andi128_type
support. This replaces the reimplementation oftry_from
with a reexport. - Simplified code by using
binary_search_by()
.
- Added explicit localization support.
- Using new
TryFrom
trait itemError
. - Increased code reuse with internal
super::Signifix
type. - Binary
SYMBOLS
and thus the binarysymbol()
method now include thei
. - Both
symbol()
methods now returnOption<&str>
instead ofOption<char>
. - Using
UpperExp
without plus sign forError
.
- Added common
Error
/Result
types for themetric
/binary
modules. - Refactored crate into
metric
/binary
modules. - Defined Signifix default notation with binary prefix (
1.234 Ki
,1 023 Ki
). - Replaced
f64
divisions 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_LEN
withALT_MIN_LEN
/ALT_MAX_LEN
. - Renamed
MAX_LEN
toDEF_MAX_LEN
andMIN_LEN
toDEF_MAX_LEN
. - Wrapped return value of
symbol()
method inOption
. - Wrapped elements of
SYMBOLS
inOption
with' '
becomingNone
. - Renamed
SYMBOL
toSYMBOLS
andFACTOR
toFACTORS
. - 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
Signifix
type from 24 to 4 B. - Implemented
Ord
trait. - Added public constants
MIN_LEN
andMAX_LEN
. - Added public constants
SYMBOL
andFACTOR
.
- Covered
isize
/usize
andi64
/u64
. - Replaced methods by public fields.
- Added
Error::Nan
variant.
- Initial release