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§
fn height(&self, room: u16, now: Instant) -> u16
fn draw( &mut self, frame: &mut Frame<'_>, area: Rect, palette: &Palette, now: Instant, )
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".