Rust term for RAII tools

⚓ Rust    📅 2025-12-30    👤 surdeus    👁️ 4      

surdeus

Info

This post is auto-generated from RSS feed The Rust Programming Language Forum - Latest topics. Source: Rust term for RAII tools

What 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

Read full topic

🏷️ Rust_feed