Tous les livres

Professionnel

Applis À propos Coach Connexion Commencer la lecture

Computer Science · Glossaire

Qu'est-ce que « Newtype » ?

Definition 8.11 University Computer Science — Year 2 · Chapitre 8 — Traits and Generics

A newtype is a struct with a single field, struct Metres(f64);, that gives an existing type a new name and a new set of operations: those implemented for it, and no others.

Lire dans le chapitre →