ivy_image/
error.rs

1use std::path::PathBuf;
2
3use thiserror::Error;
4
5pub type Result<T> = std::result::Result<T, Error>;
6
7#[derive(Error, Debug)]
8pub enum Error {
9    #[error("Failed to load image from path: {0:?}")]
10    FileLoading(PathBuf),
11    #[error("Failed to load image from memory")]
12    MemoryLoading,
13}