[][src]Trait ruspiro_console::ConsoleImpl

pub trait ConsoleImpl: Drop {
    fn putc(&self, c: char);
fn puts(&self, s: &str); }

Every "real" console need to implement this trait. Also the explicit Drop trait need to be implemented as the drop method of the implementing console will be called as soon as the actual console does release ownership of it

Required methods

fn putc(&self, c: char)

pass a single character to the output channel

fn puts(&self, s: &str)

pass a string to the output channel

Loading content...

Implementors

Loading content...