全部书籍

专业

应用 关于 Coach 登录 开始阅读

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

Computer Science · 术语表

什么是 Associated type?

Definition 8.10 University Computer Science — Year 2 · 第 8 章 — Traits and Generics

An associated type is a type named inside a trait, type Output;, that each implementation fixes. Add declares type Output, the type of a + b; Iterator declares type Item, the type of the elements it yields.

在原文中阅读 →