Created
August 5, 2014 04:11
-
-
Save tbillington/9a44e0fde3c5d68bd761 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
use std::rc::Rc; | |
struct Vertex { | |
x: f64, | |
y: f64, | |
z: f64, | |
} | |
struct Face { | |
a: Rc<Vertex>, | |
b: Rc<Vertex>, | |
c: Rc<Vertex>, | |
d: Rc<Vertex>, | |
} | |
fn main() { | |
let v = Rc::new(Vertex {x:1.5,y:1.5,z:1.5}); | |
let x = Face {a:v.clone(),b:v.clone(),c:v.clone(),d:v.clone()}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment