r4cppp
r4cppp copied to clipboard
Rust for C++ programmers
I'm a rust noob, so please tell me if I'm misunderstanding anything here, but: In the "Borrowed pointers" chapter, when you talk about automatic referencing, you give the following example...
In sub-chapter: https://github.com/nrc/r4cppp/blob/master/borrowed.md#mut-vs-const There is a sentence: ```C++ const-ness applies only to the current use of a value, whereas Rust's immutability applies to all uses of a value. So in...
Fix compilation errors
``` //let xr = &mut x; // Error - there is already an immutable ref, so we ``` Should be xr1 (or any other name here), with xr it will...
Can you provide a post on Traits? I see this mentioned a lot in the community however coming from C++, it feels very foreign. Thank you for providing a great...
I feel like default immutable variable is not obvious to me when I first time read this tutorial. For example, I don’t see the reason why use all.iter_mut() in the...
Move line to footnote so the body copy flows correctly
- Bring the explanation about `_` out of the footnote, as it stands out and immediately makes the readers question "why?". - Correct the distinction between function parameter and argument....
https://laoshaw.github.io/rust4cpp/ if there is already a site hosting these repo please let me know. I created it for easier reading.