[][src]Trait tcrab_console::Console

pub trait Console {
    type GlyphDef;
    fn wait_for_events_forever<F>(&mut self, event_handler: F)
    where
        F: FnMut(Event) -> ControlFlow
;
fn present<G, C>(
        &mut self,
        canvas: &C,
        glyph_lib: &GlyphLibrary<G, Self::GlyphDef>
    )
    where
        G: CustomGlyph,
        C: Canvas<G>
; }

Associated Types

Loading content...

Required methods

fn wait_for_events_forever<F>(&mut self, event_handler: F) where
    F: FnMut(Event) -> ControlFlow

fn present<G, C>(
    &mut self,
    canvas: &C,
    glyph_lib: &GlyphLibrary<G, Self::GlyphDef>
) where
    G: CustomGlyph,
    C: Canvas<G>, 

Loading content...

Implementors

Loading content...