ferrite-navigation 0.1.16

Navigation and path handling for Ferrite image viewer
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use std::path::PathBuf;
use thiserror::Error;

#[derive(Error, Debug)]
pub enum NavigationError {
    #[error("Failed to access directory: {0}")]
    DirectoryAccess(#[from] std::io::Error),

    #[error("Invalid path: {0}")]
    InvalidPath(PathBuf),
}

pub type Result<T> = std::result::Result<T, NavigationError>;