全部书籍

专业

应用 关于 Coach 登录 开始阅读

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

Computer Science · 术语表

什么是 Exhaustive match?

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

A match is exhaustive if every value of the matched type matches at least one of its patterns, guards not counted. Rust accepts only exhaustive matches.

在原文中阅读 →