Structs
https://doc.rust-lang.org/book/structs.html
メンバ名をつけない構造体をタプルと扱う感じみたい。
構造体のメンバをまとめて設定する方法があるのが良い。C言語はできないのですよね。
let mut point = Point3d { x: 0, y: 0, z: 0 }; point = Point3d { y: 1, .. point }; // yに1、それ以外の要素(xとz)はpointの値で設定する let origin = Point3d { x: 0, y: 0, z: 0 }; let point = Point3d { z: 1, x: 2, .. origin };