Alle boeken

Professioneel

Apps Over Coach Inloggen Begin met lezen

Computer Science · Begrippenlijst

Wat is Enumeration, enum variant?

Ook bekend als: enumeration (Rust) · enum variant

Definition 7.2 University Computer Science — Year 2 · Hoofdstuk 7 — Enums, Pattern Matching and Error Handling

A Rust enumeration enum E { V1(...), V2 { ... }, V3 } lists its enum variants, each a name with its own fields, unnamed, named or none. A value of type E is built by one variant, E::V1(...), and records which.

Lees in het hoofdstuk →