pub enum ColorMapError {
IoError(Error),
JsonError(Error),
NotFound(String),
NoConfigDirectory,
InvalidHexColor(String),
}Expand description
Error types for colormap operations
Variants§
IoError(Error)
I/O error (file read/write)
JsonError(Error)
JSON parsing/serialization error
NotFound(String)
Colormap not found by name
NoConfigDirectory
Could not determine config directory
InvalidHexColor(String)
Invalid hex color string
Trait Implementations§
Source§impl Debug for ColorMapError
impl Debug for ColorMapError
Source§impl Display for ColorMapError
impl Display for ColorMapError
Source§impl Error for ColorMapError
impl Error for ColorMapError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<Error> for ColorMapError
impl From<Error> for ColorMapError
Auto Trait Implementations§
impl Freeze for ColorMapError
impl !RefUnwindSafe for ColorMapError
impl Send for ColorMapError
impl Sync for ColorMapError
impl Unpin for ColorMapError
impl UnsafeUnpin for ColorMapError
impl !UnwindSafe for ColorMapError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more