Function struct_field_index_by_name

Source
pub(crate) fn struct_field_index_by_name(
    structs: &[MirStructDecl],
    struct_name: &str,
    field: &str,
) -> Result<usize, LowerError>
Expand description

Return one struct field index in declaration order.