[][src]Struct keeshond::gameloop::Gameloop

pub struct Gameloop { /* fields omitted */ }

Holds the main game context and performs event handling and timekeeping automatically. One of the first structs you will instantiate in your program.

Implementations

impl Gameloop[src]

pub fn new(gameinfo: GameInfo) -> Gameloop[src]

pub fn try_new(gameinfo: GameInfo) -> Result<Gameloop, InitError>[src]

pub fn control(&self) -> &GameControl[src]

pub fn control_mut(&mut self) -> &mut GameControl[src]

pub fn run(&mut self)[src]

Auto Trait Implementations

impl !RefUnwindSafe for Gameloop

impl !Send for Gameloop

impl !Sync for Gameloop

impl Unpin for Gameloop

impl !UnwindSafe for Gameloop

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Downcast for T where
    T: Any
[src]

impl<T> Erased for T

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.