backyard_generator/
error.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
use std::fmt::{ Display, Formatter };

#[derive(Debug, Clone, PartialEq)]
pub enum GeneratorError {
  NotAProgram,
}

impl Display for GeneratorError {
  fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
    match self {
      GeneratorError::NotAProgram => write!(f, "Not a program"),
    }
  }
}