1#[derive(Debug)]
2pub enum Error {
3 IndexOutOfRange,
4}
5
6impl std::fmt::Display for Error {
7 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
8 match self {
9 Error::IndexOutOfRange => write!(f, "Index out of range"),
10 }
11 }
12}
13
14impl std::error::Error for Error {}