Rust for C++

Pointers

Reference (&)

Rust
let reference = █

Run

C++
auto reference = █

Run

Dereference (*)

Rust
let value = (*reference).number;

Run

C++
auto value = reference->number;

Run