plain-ds 0.3.1

Plain data structures
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use std::path::PathBuf;

#[derive(Debug, PartialEq)]
pub enum DSError {
    IndexOutOfBounds { index: usize, len: usize },
    EmptyPath,
    WrongPath { path: PathBuf },
    NotAbsolutePath { path: PathBuf },
    NotFile { path: PathBuf },
    NotDirectory { path: PathBuf },
    PathNotFound { path: PathBuf },
}

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