Printer

Trait Printer 

Source
pub trait Printer {
    type Err: Error + 'static;

    // Required method
    fn print(&mut self, v: i32) -> Result<(), Self::Err>;
}
Expand description

The printer to print evaluated value.

Required Associated Types§

Source

type Err: Error + 'static

The error type that printer will provide.

Required Methods§

Source

fn print(&mut self, v: i32) -> Result<(), Self::Err>

Print integer value.

Implementors§

Source§

impl Printer for StdPrinter

Source§

type Err = EmptyError