Implementation of Deref for Box


#1

Okay. Dumb question.

impl<T: ?Sized> Deref for Box<T> {
    type Target = T;

    fn deref(&self) -> &T {
        &**self
    }
}

Doesn’t this implementation… call itself?


#2

See Box is Special.