Trait Display

Source
pub trait Display {
    // Required methods
    fn new(width: i32, height: i32, name: String) -> Self;
    fn draw(&mut self, ch: char, x: i32, y: i32);
    fn get_key(&mut self) -> String;
    fn refresh(&mut self);
    fn clear(&mut self);
    fn close(&mut self);
}

Required Methods§

Source

fn new(width: i32, height: i32, name: String) -> Self

Source

fn draw(&mut self, ch: char, x: i32, y: i32)

Source

fn get_key(&mut self) -> String

Source

fn refresh(&mut self)

Source

fn clear(&mut self)

Source

fn close(&mut self)

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§