3 ms·
What's "drop trait" for C? There are no any traits in C.
by vbezhenar 2y ago
What's "drop trait" for C? There are no any traits in C.
- MathMonkeyMan 2y agoParent post said Rust. edit: TIL: Looks like the [drop trait][1] is an opt-in destructor that the Rust compiler understands. [1]: https://doc.rust-lang.org/nomicon/dropck.html https://doc.rust-lang.org/nomicon/dropck.html