Rust for C++

Visibility (pub)

Rust
mod my {
    pub struct Block {
        number: i32
    }
}

Run

C++
namespace my {
    class Block {
        private:
            int number;
    };
}

Run