To create a variable with the type of that enum, you can use the name of the enum with the value: fn main() { let lang = CodeLang::Rust; }.
確定! 回上一頁