Hu? Is there a better way to convert a `Option<Box<T>>` to a `Option<&T>` without moving it from the heap then this? `opt.as_ref().map(|v| v.as_ref())`
#rust #rustlang
@cjk
Maybe [Option::as_deref](https://doc.rust-lang.org/std/option/enum.Option.html#method.as_deref)?
* [Box::deref](https://doc.rust-lang.org/std/boxed/struct.Box.html#method.deref)
QOTO: Question Others to Teach Ourselves An inclusive, Academic Freedom, instance All cultures welcome. Hate speech and harassment strictly forbidden.