pub(crate) fn gen_collision_check_fn(
idx: usize,
field: &LayoutField<'_>,
all_fields: &[LayoutField<'_>],
) -> (Ident, TokenStream)Expand description
Generate collision detection debug assertions for a field against all other fields.
This function generates runtime checks that verify storage slots don’t overlap. Checks are generated for all fields (both manual and auto-assigned) to ensure comprehensive collision detection.