Update/change fields of a reflected/dynamic type #14850
Labels
A-Reflection
Runtime information about types
C-Feature
A new feature, making something new possible
D-Complex
Quite challenging from either a design or technical perspective. Ask for help!
What problem does this solve or what need does it fill?
I can only get a
&mut dyn Reflect
fromfield_mut
fromDynamicTupleStruct
(and similar) which I can modify, but e.g. changing the field from being aDynamicStruct
to aDynamicEnum
isn't possible.What solution would you like?
Add the option to replace fields
What alternative(s) have you considered?
I currently have no idea of how to do that externally..
Additional context
Might be easier when unifying fields (#14847 (comment)) ?
The text was updated successfully, but these errors were encountered: