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
Running this through typeshare, the following is generated
/// Generated type representing the anonymous struct variant `MyVariant` of the `MyEnum` Rust enum
publicstructMyEnumMyVariantInner:Codable{publicleta:Stringpublicletb:Doublepublicinit(a:String, b:Double){self.a = a
self.b = b
}}publicenumMyEnum:Codable,Equatable{case myVariant(MyEnumMyVariantInner)...}
Although Equatable was applied to MyEnum, it was not applied to MyEnumMyVariantInner. And there doesn't seem to be any way to do so.
My first thought was to apply #[typeshare(swift = "Equatable")] on the enum variant, but that was ignored.
Consider the following enum decorated with the swift protocol
Equatable
.Running this through typeshare, the following is generated
Although
Equatable
was applied toMyEnum
, it was not applied toMyEnumMyVariantInner
. And there doesn't seem to be any way to do so.My first thought was to apply
#[typeshare(swift = "Equatable")]
on the enum variant, but that was ignored.The text was updated successfully, but these errors were encountered: