From abdd1da877c5c69c7c64f9d5df0e0e534f94bc0e Mon Sep 17 00:00:00 2001 From: Timothy Warren Date: Thu, 31 Jan 2019 11:42:19 -0500 Subject: [PATCH] Add generic type examples --- .idea/misc.xml | 2 + .idea/rust.iml | 8 ++ .idea/workspace.xml | 167 ++++++++++++++++++++++++++++++------------ generics/Cargo.toml | 7 ++ generics/src/lib.rs | 80 ++++++++++++++++++++ generics/src/main.rs | 40 ++++++++++ generics/src/point.rs | 34 +++++++++ 7 files changed, 291 insertions(+), 47 deletions(-) create mode 100644 generics/Cargo.toml create mode 100644 generics/src/lib.rs create mode 100644 generics/src/main.rs create mode 100644 generics/src/point.rs diff --git a/.idea/misc.xml b/.idea/misc.xml index baf7791..92170b1 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -16,6 +16,8 @@ + + diff --git a/.idea/rust.iml b/.idea/rust.iml index a8e328f..454cb85 100644 --- a/.idea/rust.iml +++ b/.idea/rust.iml @@ -63,12 +63,20 @@ + + + + + + + + diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 145a8ab..5bf83ff 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -2,7 +2,6 @@ - @@ -16,23 +15,42 @@ - + - - + + + + + + + + + + + - - + + + + - + - - + + + + + + + + + + @@ -79,6 +97,13 @@ @@ -88,11 +113,11 @@ false false - -