Rust 的枚举(Enum)类型 ... enum Number { Zero, One, Two, } let a = Number::One; ... enum Color { Red = 0xff0000, Green = 0x00ff00, Blue = 0x0000ff, } ...
確定! 回上一頁