[][src]Trait aoc_runner::Runner

pub trait Runner {
    fn gen(input: ArcStr) -> Self
    where
        Self: Sized
;
fn run(&self) -> Box<dyn Display>;
fn bench(&self, black_box: fn(_: &dyn Display)); fn try_gen(input: ArcStr) -> Result<Self, Box<dyn Error>>
    where
        Self: Sized
, { ... }
fn try_run(&self) -> Result<Box<dyn Display>, Box<dyn Error>> { ... } }

Required methods

fn gen(input: ArcStr) -> Self where
    Self: Sized

fn run(&self) -> Box<dyn Display>

fn bench(&self, black_box: fn(_: &dyn Display))

Loading content...

Provided methods

fn try_gen(input: ArcStr) -> Result<Self, Box<dyn Error>> where
    Self: Sized

fn try_run(&self) -> Result<Box<dyn Display>, Box<dyn Error>>

Loading content...

Implementors

Loading content...