1 2 3 4 5 6 7 8 9 10
use solverforge_core::score::Score; #[inline] pub(crate) fn fixed_weight_is_hard<Sc: Score>(weight: Sc) -> bool { weight .to_level_numbers() .first() .map(|&hard| hard != 0) .unwrap_or(false) }