Skip to content

Glossary: Software Design Patterns in Rust

RAII (Resource Acquisition Is Initialization)

Also written: RAII

Tying cleanup to a value's life: Rust calls `drop` when the value goes out of scope, as with Receipt printing "closing".

Where the book teaches it

Related terms

Drop