The Rust Programming Language Forum
Equivalent of struct->ptr = (char*) data in rust
help
leudz
June 11, 2022, 6:36pm
7
I think this thread should answer your question
When does dereferencing a pointer create a copy?
show post in topic
Related topics
Topic
Replies
Views
Activity
[FFI] Casting C void* to Rust structure (erratum)
15
6652
January 24, 2021
Reading structures in memory via pointers
help
18
11284
January 22, 2020
Scope for structs and raw pointers for FFI/C library
help
4
693
May 10, 2021
Passing a struct containing function pointers from Rust to C++
help
7
1599
July 24, 2023
How to get *mut libc::c_char in place of *mut libc::c_char pointer?
5
1430
January 12, 2023