全部书籍

专业

应用 关于 Coach 登录 开始阅读

书籍暂未推出简体中文版——当前显示英文版。

Computer Science · 术语表

什么是 Enumeration, enum variant?

又称: enumeration (Rust) · enum variant

Definition 7.2 University Computer Science — Year 2 · 第 7 章 — Enums, Pattern Matching and Error Handling

A Rust enumeration enum E { V1(...), V2 { ... }, V3 } lists its enum variants, each a name with its own fields, unnamed, named or none. A value of type E is built by one variant, E::V1(...), and records which.

在原文中阅读 →