Jörn Bethune 3d1b19ed90 Implement Ser+De for Saturating<T>
The serialization implementation is heavily
inspired by the existing trait implentation for
`std::num::Wrapping<T>`.

The deserializing implementation maps input values
that lie outside of the numerical range of the
output type to the `MIN` or `MAX` value of the
output type, depending on the sign of the input
value. This behaviour follows to the `Saturating`
semantics of the output type.

fix #2708
2024-04-06 19:58:01 +02:00
..
2024-03-23 20:26:05 -07:00
2023-07-25 23:06:34 -07:00
2024-04-06 19:58:01 +02:00
2024-03-23 20:26:05 -07:00
2023-07-23 15:23:36 +05:00
2023-08-20 21:36:30 -07:00
2023-07-25 23:06:34 -07:00
2024-04-06 19:58:01 +02:00