Skip to main content

Band

Trait Band 

Source
pub trait Band {
    // Required methods
    fn height(&self, room: u16, now: Instant) -> u16;
    fn draw(
        &mut self,
        frame: &mut Frame<'_>,
        area: Rect,
        palette: &Palette,
        now: Instant,
    );

    // Provided method
    fn deadline(&self, _now: Instant) -> Option<Instant> { ... }
}

Required Methods§

Source

fn height(&self, room: u16, now: Instant) -> u16

Source

fn draw( &mut self, frame: &mut Frame<'_>, area: Rect, palette: &Palette, now: Instant, )

Provided Methods§

Source

fn deadline(&self, _now: Instant) -> Option<Instant>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§