Refactor Field
type to have class path and field name as const parameters
#2
Labels
enhancement
New feature or request
This would change
Field
definition fromto
This change would allow:
#[field]
attribute in*FromJavaValue
derive macros forField
fieldsMoreover, in
*FromJavaValue
derive macros we could still ensure that the two constant parameters match the declared package and class name.With some macro trickery we could perhaps include a "pseudo type macro"
Field!
that expands to the correctField<...>
type and does not actually exist but is instead manually expanded by the derive macros.Blocked by rust-lang/rust#44580
The text was updated successfully, but these errors were encountered: