Trait mvc_rs::View

source ·
pub trait View<T> {
    // Required methods
    fn wr(
        &mut self,
        x: u16,
        y: u16,
        st: u16,
        bgc: u16,
        fgc: u16,
        msg: &String
    ) -> Result<(), Box<dyn Error>>;
    fn reg(&mut self, c: Vec<T>);
    fn col(&self, n: u16) -> T;
}
Expand description

trait View

Required Methods§

source

fn wr( &mut self, x: u16, y: u16, st: u16, bgc: u16, fgc: u16, msg: &String ) -> Result<(), Box<dyn Error>>

wr

source

fn reg(&mut self, c: Vec<T>)

reg

source

fn col(&self, n: u16) -> T

col

Implementors§