Rust term for RAII tools
⚓ Rust 📅 2025-12-30 👤 surdeus 👁️ 4What would you call something whose primary function is triggered on Drop?
Would it be uncontroversial to call it a "drop guard"?
Say, for instance, you have an object that begins measuring time on creation and when it is dropped it will calculate the duration of the object and log how long it lived. Would it be correct to say that it is a "timing drop guard"?
3 posts - 3 participants
🏷️ Rust_feed