Created
February 25, 2020 08:12
-
-
Save ruimo/ee81fc69d3576e2c6e915c91554638d4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#[derive(Debug)] | |
struct Point { | |
x: i32, | |
y: i32, | |
} | |
fn main() { | |
let p = Point {x: 1, y: 2}; | |
println!("p: {:?}", p); | |
println!("p: {:#?}", p); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment