Skip to main content

non_finite_fields

Function non_finite_fields 

Source
fn non_finite_fields(c: &InferenceConfig) -> Vec<&'static str>
Expand description

Float fields the caller set to a value JSON cannot carry.

Listed explicitly rather than derived, because the derivation would have to go through the very serialisation that loses them. The drift risk that creates is covered by every_float_field_is_checked_for_non_finiteness, which fails if a new float field is added and not named here.