It'd be better to model OrdF64 as NonNan because it brings panic (or error) closer to the cause of the issue making debugging easier. Potential inspiration: https://docs.rs/ordered-float/3.0.0/ordered_float/struct.NotNan.html
The change should be simple: make the field private and constructor panics or returns Result.
It'd be better to model
OrdF64asNonNanbecause it brings panic (or error) closer to the cause of the issue making debugging easier. Potential inspiration: https://docs.rs/ordered-float/3.0.0/ordered_float/struct.NotNan.htmlThe change should be simple: make the field private and constructor panics or returns
Result.