Another potential approach: x & !(uN::MAX.checked_shl(k).unwrap_or(0)).
x & !(uN::MAX.checked_shl(k).unwrap_or(0))