The official installation guide (https://wiki.archlinux.org/index.php/Installation_Guide) contains a more verbose description.
- Image from https://www.archlinux.org/
| // Demonstration of the major ownership and borrowing rules in Rust | |
| // Run with `rustc rust-ownership-examples.rs && ./rust-ownership-examples` | |
| struct SensorReading { | |
| value: u16, | |
| timestamp_ms: u32, | |
| } | |
| //------------------------------------------------------------------------------ | |
| // 1. Each value in Rust has an owner. |
The official installation guide (https://wiki.archlinux.org/index.php/Installation_Guide) contains a more verbose description.