From a50da2e395e97f44813797ee1978f7b31cc0a8e8 Mon Sep 17 00:00:00 2001 From: Andrew Johnson Date: Wed, 25 Apr 2018 16:45:03 -0600 Subject: [PATCH] TR update datatypes --- Chapter01/intro_datatypes.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Chapter01/intro_datatypes.rs b/Chapter01/intro_datatypes.rs index 91a6a35..cb762a4 100644 --- a/Chapter01/intro_datatypes.rs +++ b/Chapter01/intro_datatypes.rs @@ -25,6 +25,11 @@ struct Data2 type Tuple1 = (i32, f64, String); type Tuple2 = (u32, String, f64); +//these types are not equivalent to tuples +struct New1(i32, f64, String); +struct New2(u32, String, f64); + + //Standard operators can be implemented with traits //anyone coming from an ML family language may appreciate use std::ops::Mul;