Module dec_format

Source
Expand description

Serialises number as a string; deserialises either as a string or number.

This format works for u64, u128, Option<u64> and Option<u128> types. When serialising, numbers are serialised as decimal strings. When deserialising, strings are parsed as decimal numbers while numbers are interpreted as is.

Structs§

ParseUnitError

Traits§

DecType
Abstraction between integers that we serialise.

Functions§

deserialize
serialize