Implementation of Deref for Box

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 Likes

See Box is Special.

5 Likes