pub struct TheGame { /* private fields */ }
Implementations§
Source§impl TheGame
impl TheGame
pub fn new(the_game_defs: &TheGameDefs) -> Self
pub fn increment_year(&mut self)
Sourcepub fn show_stardate<W: WriteColor>(&self, sout: &mut W) -> StResult<()>
pub fn show_stardate<W: WriteColor>(&self, sout: &mut W) -> StResult<()>
Display current star date
pub fn s9(&self) -> f64
pub fn beginning_stardate(&self) -> StarDate
pub fn play<R: BufRead, W: WriteColor>( &mut self, sin: &mut R, sout: &mut W, ) -> StResult<()>
Auto Trait Implementations§
impl Freeze for TheGame
impl RefUnwindSafe for TheGame
impl Send for TheGame
impl Sync for TheGame
impl Unpin for TheGame
impl UnwindSafe for TheGame
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