1 2 3 4 5 6 7 8 9 10 11
use image::error::ImageError; use thiserror::Error; pub type AsciiResult<T> = Result<T, AsciiError>; /// Error thrown by an `AsciiGenerator` #[derive(Debug, Error)] pub enum AsciiError { #[error("image error: {0}")] Image(ImageError), }