The Rust Programming Language Forum
What are smart pointers? (Part 2 with definition that compiles)
jbe
September 13, 2022, 7:09am
3
Would this fix it?
let ptr: *mut [T] = &mut *this; + std::mem::forget(this);
(
Playground
)
show post in topic
Related Topics
Topic
Replies
Views
Activity
What are smart pointers?
35
3852
March 1, 2022
When `impl Deref` is OK?
4
482
October 4, 2019
Summarizing built-in types
31
1227
April 15, 2021
Smart pointer which owns its target
62
3620
October 13, 2022
Automatic dereferencing
7
9703
April 23, 2021