pub fn get_field_idx_by_name(ty: Ty<'_>, name: Symbol) -> Option<usize>
Gets the index of a field by name.