Semua buku

Profesional

Aplikasi Tentang Pelatih Masuk Mulai membaca

Computer Science · Glosarium

Apa itu Drop?

Dikenal juga sebagai: drop (Rust)

Definition 6.2 University Computer Science — Year 2 · Bab 6 — Rust: Ownership and Borrowing

To drop a value is to run its clean-up code, its Drop implementation if it has one, then to drop its fields, and finally to free its memory. The compiler inserts the drops, at the end of the owner’s scope, in the reverse order of declaration; drop(x) drops x earlier.

Baca dalam konteks →