jiacai2050 commented on issue #1393:
URL: https://github.com/apache/fury/issues/1393#issuecomment-2305993126

   [This 
spec](https://fury.apache.org/docs/specification/fury_xlang_serialization_spec#enum)
 says enum are serialized as unsigned var int, but in Rust enum could carry 
payload, such as:
   
   ```rust
   enum Location {
       Unknown,
       Anonymous,
       Known(Coord),
   }
   
   enum ComplexEnum {
       Nothing,
       Something(u32),
       LotsOfThings {
           usual_struct_stuff: bool,
           blah: String,
       }
   }
   ```
   
   Those are actually tagged unions, so in first version I will only support 
enum without any payload, and we may need to discuss how to serialize those 
union.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to