Hacker News new | ask | show | jobs
by comex 3885 days ago
Are you referring to objects that contain inner pointers? Otherwise you can just return T or Box<T>.
1 comments

Has "Box" settled down yet? The last time I looked, box syntax and semantics were still in flux.
Box is stable and fully supported. The built-in "box" syntax is unstable still, but Box::new suffices in almost all cases.