pub(crate) fn is_immune_to_damage<V: LivingEntity + ?Sized>( victim: &V, damage_source: &DamageSource, ) -> bool