diff options
Diffstat (limited to 'exercises/conversions/as_ref_mut.rs')
| -rw-r--r-- | exercises/conversions/as_ref_mut.rs | 2 |
1 files changed, 2 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 { |
