Why *mut?
#86
-
|
In this chapter about Debug it says:
I know the pointer type Why is it so? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
GDB doesn't really understand Rust very well; further it doesn't want to be restricted by Rust's rules, which make debugging harder. Treating the location of Probably some text to this effect should be added here somewhere. |
Beta Was this translation helpful? Give feedback.
GDB doesn't really understand Rust very well; further it doesn't want to be restricted by Rust's rules, which make debugging harder. Treating the location of
xas a mutable raw pointer is what allows you to set x's value in GDB:Probably some text to this effect should be added here somewhere.