Rust for C++

Parameters

Borrow (&)

Rust
fn function(block: &Block) {
}

Run

C++
void function(const Block &block) {
}

Run

Move

Rust
fn function(block: Block) {
}

Run

C++
void function(const Block &&block) {
}

Run