Ad
Code
Diff
  • // Code is in the preload
    fn person_builder(first_name: &str, last_name: &str) -> Person {
      Person { first_name: String::from(first_name), last_name: String::from(last_name) }
    }
    • // Code is in the preload
    • fn person_builder(first_name:&'static str, last_name: &'static str) -> Person {
    • Person { first_name: first_name, last_name: last_name }
    • fn person_builder(first_name: &str, last_name: &str) -> Person {
    • Person { first_name: String::from(first_name), last_name: String::from(last_name) }
    • }