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
If an enum variant contains the Link field and the user can guarantee the variant, it should be possible to push the Link into the enum variant type so that only that variant can support the collection rather than wrapping the whole enum in another struct containing the links
Example:
enum SomeEnum {
variant1: {
link: Link
...
}
}
Instead of
struct SomeWrapper {
link: Link
enum: SomeEnum
}
The text was updated successfully, but these errors were encountered:
If an enum variant contains the
Link
field and the user can guarantee the variant, it should be possible to push the Link into the enum variant type so that only that variant can support the collection rather than wrapping the whole enum in another struct containing the linksExample:
Instead of
The text was updated successfully, but these errors were encountered: