File: rust.actual

package info (click to toggle)
golang-github-alecthomas-chroma 0.10.0-5
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 6,652 kB
  • sloc: python: 426; javascript: 79; makefile: 34; sh: 32
file content (23 lines) | stat: -rw-r--r-- 329 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#[derive(Debug)]
struct Rectangle {
    width: u32,
    height: u32,
}

async fn alignof() {}

fn main() {
    let rect1 = Rectangle { width: 30, height: 50 };

    // Some comment
    println!("rect1 is {:?}", rect1);

    let r#type = "valid";
    let i: i128 = 1117;

    let s = "March
April";
    let s = r"March
April";

}