// structsstructPoint { x:i32, y:i32,}letmut point =Point { x:0, y:0 };// tuple structsstructColor(u8, u8, u8);let android_green =Color(0xa4, 0xc6, 0x39);letColor(red, green, blue) = android_green;// A tuple struct’s constructors can be used as functions.structDigit(i32);let v =vec![0, 1, 2];let d:Vec<Digit> = v.into_iter().map(Digit).collect();// newtype: a tuple struct with only one elementstructInches(i32);let length =Inches(10);letInches(integer_length) = length;// unit-like structsstructEmptyStruct;let empty =EmptyStruct;