pub struct GameLog { pub entries: Vec, } impl GameLog { pub fn new(first_entry: S) -> Self { GameLog { entries: vec![first_entry.to_string()], } } pub fn append(&mut self, s: S) { self.entries.push(s.to_string()); } }