Why can't I use the Deref trait inside Drop in Rust?
Advertisements I implemented the Deref trait for the MyString struct which allows me to use an object of type MyString via *o or o.deref(). But when I implement the Drop trait for MyString then the already implemented Deref trait cannot be used inside the Drop trait. Why? use std::ops::Deref; use std::ops::DerefMut; struct MyString { s:… Read More Why can't I use the Deref trait inside Drop in Rust?