You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently defstruct offers no way of declaring a field with a default_factory, but this could be useful when e.g. defining structs from dataclasses. Is there any chance of supporting this?
Description
Currently
defstruct
offers no way of declaring a field with adefault_factory
, but this could be useful when e.g. defining structs from dataclasses. Is there any chance of supporting this?Or maybe even with
FieldInfo
à la:The text was updated successfully, but these errors were encountered: