Created
November 22, 2016 23:39
-
-
Save willmurphyscode/403440d84d327ef91987bee28af49948 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
//src/main.rs | |
mod rectangle; | |
fn main() { | |
println!("Hello, world!"); | |
} | |
//src/point.rs | |
#[derive(Debug)] | |
pub struct Point { | |
x: i32, | |
y: i32 | |
} | |
//src/rectangle.rs | |
use point::Point; | |
#[derive(Debug)] | |
pub struct Rectangle { | |
lower_left : Point, | |
upper_right : Point | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment