Alle boeken

Professioneel

Apps Over Coach Inloggen Begin met lezen

Computer Science · Begrippenlijst

Wat is Newtype?

Definition 8.11 University Computer Science — Year 2 · Hoofdstuk 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.

Lees in het hoofdstuk →