Java enum-like behavior in Rust

后端 未结 0 742
抹茶落季
抹茶落季 2021-01-06 06:45

I want to have an enum where each value in the enum stores a constant array of bytes that represent the RGBA values for a color. In Java I would do this:

publ         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题