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.
Asked: 2021-07-18 11:00:00 +0000
Seen: 9 times
Last updated: Oct 22 '22