Todos los libros

Profesional

Apps Acerca de Coach Iniciar sesión Empezar a leer

Computer Science · Glosario

¿Qué es Newtype?

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

Leer en el capítulo →