aoc-toolkit 0.1.0-alpha.3

A toolkit for solving Advent of Code problems
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use crate::runner::report::execution::ExecutionReport;

pub enum CommandOutput {
    Plan(Vec<(usize, usize)>),
    Execution(ExecutionReport),
}

impl CommandOutput {
    pub fn is_success(&self) -> bool {
        match self {
            Self::Plan(_) => true,
            Self::Execution(report) => report.is_success(),
        }
    }
}