neo-devpack-solidity 0.22.0

Production-focused Solidity-to-NeoVM compilation system
Documentation
1
2
3
4
5
6
7
fn find_struct_field<'a>(value_type: &'a ValueType, field_name: &str) -> Option<&'a StructField> {
    match value_type {
        ValueType::Struct { fields, .. } => fields.iter().find(|field| field.name == field_name),
        _ => None,
    }
}