rust-by-example-cn
rust-by-example-cn copied to clipboard
Translate advice
The enum keyword allows the creation of a type which may be one of a few different variants.
这句中 variant 可翻译为变种。
整句话你觉得翻译成怎样好些呢
enum关键字允许创建可代表一个或多个变种的通用类型
粗体是意译加上的额外词语
enum 關鍵字可用於創建類型,(與 struct 不同,)它創建的類型能夠包含多個變種。