Constant style::applicable_declarations::PROXIMITY_INFINITY

source ยท
const PROXIMITY_INFINITY: u16 = u16::MAX; // 65_535u16
Expand description

Sacrifice the largest possible value for infinity. This makes the comparison trivial.