bq. "There is a huge cognitive overhead when working with abstractions and trying to control the final memory layout of the running code"
—From a presentation on Rust
I'm gathering bits and pieces of Rust code "here":https://github.com/laumann/rust-tour
/// An example of destructuring a struct////// When we're only interested in some attributes the ".." syntax is quite/// useful.///#[deriving(Clone)]structPoint3d{x:f32,y:f32,z:f32}implPoint3d{fnxy(&self)->(f32,f32){letPoint3d{x:x,y:y,..}=(*self).clone();(x,y)}}fnmain(){letp=Point3d{x:1.0,y:2.0,z:3.0};let(x,y)=p.xy();println!("x = {}, y = {}",x,y);}