-
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Update/change fields of a reflected/dynamic type #14850
Copy link
Copy link
Open
Labels
A-ReflectionRuntime information about typesRuntime information about typesC-FeatureA new feature, making something new possibleA new feature, making something new possibleD-ComplexQuite challenging from either a design or technical perspective. Ask for help!Quite challenging from either a design or technical perspective. Ask for help!
Description
Activity
Metadata
Metadata
Assignees
Labels
A-ReflectionRuntime information about typesRuntime information about typesC-FeatureA new feature, making something new possibleA new feature, making something new possibleD-ComplexQuite challenging from either a design or technical perspective. Ask for help!Quite challenging from either a design or technical perspective. Ask for help!
Type
Projects
- StatusShow more project fieldsOpen
What problem does this solve or what need does it fill?
I can only get a
&mut dyn Reflectfromfield_mutfromDynamicTupleStruct(and similar) which I can modify, but e.g. changing the field from being aDynamicStructto aDynamicEnumisn'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)) ?