ClockTime & Formats with an inner optional interger: add `saturating_{add,sub}` & fix `cmp`
For ClockTime
and others Format(Option<{u32,u64}>)
types:
- Implement
saturating_{add,sub}
. - Fix
PartialOrd
which was returningtrue
for expressions such asClockTime::none() < ClockTime::from_seconds(1)
andClockTime::from_seconds(1) > ClockTime::none()
. - Remove
Ord
because these types are not a total order when it comes to an innerNone
. - Add tests.
Edited by François Laignel