/// Convert a type into a [`usize`], falling back to [`usize::MAX`] if it fails. This is mainly
/// used for converting `u32 -> usize` and will compile down to a no-op on the vast majority of
/// machines.
/// Convert a type into a [`u32`], falling back to [`u32::MAX`] if it fails. This is mainly
/// used for converting `usize -> u32`.