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
4430
March 1, 2022
When `impl Deref` is OK?
4
528
October 4, 2019
Summarizing built-in types
31
1327
April 15, 2021
Smart pointer which owns its target
62
4039
October 13, 2022
Automatic dereferencing
7
12108
April 23, 2021