Skip to content

Glossary: Rust in Practice

union

A C-style type whose fields share the same memory. Reading a union's field is one of the five things only `unsafe` allows.

Where the book teaches it

Related terms

unsafe