16: Add solutions for section "traits".

[?]
Aaw9nJhsNmfzFih9mKyNw9mV8CgERXJkRa1kK1Kx3LQH
Aug 7, 2021, 11:14 AM
SIHMMMO4N6GPK7X6OBJ7DESAK2JWLTCRGXA4UWVOCXBILGU6W7MAC

Dependencies

Change contents

  • edit in exercises/traits/traits2.rs at line 12
    [2.86271][2.86271:86289]()
    // I AM NOT DONE
  • replacement in exercises/traits/traits2.rs at line 17
    [2.86344][2.86344:86371]()
    //TODO: Add your code here
    [2.86344]
    [2.86371]
    impl AppendBar for Vec<String> {
    fn append_bar(mut self) -> Self {
    self.push(String::from("Bar"));
    self
    }
    }
  • edit in exercises/traits/traits1.rs at line 10
    [2.86928][2.86928:86946]()
    // I AM NOT DONE
  • replacement in exercises/traits/traits1.rs at line 16
    [2.87029][2.87029:87054]()
    //Add your code here
    [2.87029]
    [2.87054]
    fn append_bar(self) -> Self {
    format!("{}Bar", self)
    }