pub struct GameHistoryStore {
pub history: Vec<GameHistory>,
pub total_games: u32,
}Fields§
§history: Vec<GameHistory>§total_games: u32Implementations§
Source§impl GameHistoryStore
impl GameHistoryStore
pub fn new() -> Self
pub fn print_summary(&self)
pub fn add_game(&mut self, game: GameHistory)
pub fn last_game(&self) -> Option<&GameHistory>
Auto Trait Implementations§
impl Freeze for GameHistoryStore
impl RefUnwindSafe for GameHistoryStore
impl Send for GameHistoryStore
impl Sync for GameHistoryStore
impl Unpin for GameHistoryStore
impl UnwindSafe for GameHistoryStore
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more