summaryrefslogtreecommitdiff
path: root/exercises
diff options
context:
space:
mode:
authorAbdou Seck <djily02016@gmail.com>2019-12-16 11:33:00 -0500
committerAbdou Seck <djily02016@gmail.com>2019-12-16 11:33:00 -0500
commitfc26b5e151b985ff5e369b3ef4049c0b01f11b0c (patch)
tree5e3944c8dca4b2340bfb5d1a658798f6e2da3c66 /exercises
parent0c85dc1193978b5165491b99cc4922caf8d14a65 (diff)
I AM NOT DONE comment in conversions exercise files
Diffstat (limited to 'exercises')
-rw-r--r--exercises/conversions/as_ref_mut.rs2
-rw-r--r--exercises/conversions/from_into.rs1
-rw-r--r--exercises/conversions/from_str.rs1
-rw-r--r--exercises/conversions/try_from_into.rs1
-rw-r--r--exercises/conversions/using_as.rs1
5 files changed, 6 insertions, 0 deletions
diff --git a/exercises/conversions/as_ref_mut.rs b/exercises/conversions/as_ref_mut.rs
index 9d92fff..8a90703 100644
--- a/exercises/conversions/as_ref_mut.rs
+++ b/exercises/conversions/as_ref_mut.rs
@@ -2,12 +2,14 @@
// Read more about them at https://doc.rust-lang.org/std/convert/trait.AsRef.html
// and https://doc.rust-lang.org/std/convert/trait.AsMut.html, respectively.
+// I AM NOT DONE
// Obtain the number of bytes (not characters) in the given argument
// Add the AsRef trait appropriately as a trait bound
fn byte_counter<T>(arg: T) -> usize {
arg.as_ref().as_bytes().len()
}
+// I AM NOT DONE
// Obtain the number of characters (not bytes) in the given argument
// Add the AsRef trait appropriately as a trait bound
fn char_counter<T>(arg: T) -> usize {
diff --git a/exercises/conversions/from_into.rs b/exercises/conversions/from_into.rs
index c988ee8..666f234 100644
--- a/exercises/conversions/from_into.rs
+++ b/exercises/conversions/from_into.rs
@@ -18,6 +18,7 @@ impl Default for Person {
}
}
+// I AM NOT DONE
// Your task is to complete this implementation
// in order for the line `let p = Person::from("Mark,20")` to compile
// Please note that you'll need to parse the age component into a `usize`
diff --git a/exercises/conversions/from_str.rs b/exercises/conversions/from_str.rs
index 247ae14..3c889d7 100644
--- a/exercises/conversions/from_str.rs
+++ b/exercises/conversions/from_str.rs
@@ -10,6 +10,7 @@ struct Person {
age: usize,
}
+// I AM NOT DONE
// Steps:
// 1. If the length of the provided string is 0, then return an error
// 2. Split the given string on the commas present in it
diff --git a/exercises/conversions/try_from_into.rs b/exercises/conversions/try_from_into.rs
index ff77089..255d2e1 100644
--- a/exercises/conversions/try_from_into.rs
+++ b/exercises/conversions/try_from_into.rs
@@ -10,6 +10,7 @@ struct Person {
age: usize,
}
+// I AM NOT DONE
// Your task is to complete this implementation
// in order for the line `let p = Person::try_from("Mark,20")` to compile
// and return an Ok result of inner type Person.
diff --git a/exercises/conversions/using_as.rs b/exercises/conversions/using_as.rs
index 37eb69f..54f9651 100644
--- a/exercises/conversions/using_as.rs
+++ b/exercises/conversions/using_as.rs
@@ -2,6 +2,7 @@
// Please note that the `as` operator is not only used when type casting.
// It also helps with renaming imports.
+// I AM NOT DONE
// The goal is to make sure that the division does not fail to compile
fn average(values: &[f64]) -> f64 {
let total = values