Ask Your Question

Revision history [back]

When we dereference a Box<T> using the * operator, we get a value of type T. So, dereferencing a Box<T> provides a value, not a reference.

However, if the value of type T itself contains references, then we would get a reference to the contents of the Box<T> when we access those references from the dereferenced value.