From 4015bdac47b3ee14d378d97a750fc2c7d7445b57 Mon Sep 17 00:00:00 2001 From: Timothy Warren Date: Fri, 1 Feb 2019 14:50:18 -0500 Subject: [PATCH] Add basic closure example --- .idea/misc.xml | 1 + .idea/rust.iml | 5 +++ .idea/workspace.xml | 83 +++++++++++++++++--------------------------- closures/Cargo.toml | 7 ++++ closures/src/main.rs | 71 +++++++++++++++++++++++++++++++++++++ 5 files changed, 116 insertions(+), 51 deletions(-) create mode 100644 closures/Cargo.toml create mode 100644 closures/src/main.rs diff --git a/.idea/misc.xml b/.idea/misc.xml index 89e54d4..9afac53 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -21,6 +21,7 @@ + diff --git a/.idea/rust.iml b/.idea/rust.iml index eb9d073..06f6986 100644 --- a/.idea/rust.iml +++ b/.idea/rust.iml @@ -82,8 +82,13 @@ + + + + + diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 54a3b77..8270e60 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -13,30 +13,12 @@ - + - + - - - - - - - - - - - - - - - - - - - - + + @@ -53,9 +35,11 @@ ftoc + expensive_closure(intensity) f_to_c + expensive_result.value(intensity) @@ -97,6 +81,7 @@ @@ -106,11 +91,11 @@ false false - -