1 2 3 4 5 6 7
use thiserror::Error; #[derive(Debug, Error, Clone, Copy, PartialEq, Eq)] pub enum Error { #[error("Provided index is greater than max index.")] OutOfIndex, }