This repository has been archived on 2022-02-08. You can view files and clone it, but cannot push or open issues or pull requests.
ext2-rs/src/error.rs

16 lines
310 B
Rust
Raw Normal View History

2018-03-18 12:11:58 -05:00
/// The set of all possible errors
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)]
pub enum Error {
BadMagic(u16),
OutOfBounds(usize),
BadBlockGroupCount(u32, u32),
2018-03-18 12:11:58 -05:00
}
impl From<Infallible> for Error {
fn from(_: Infallible) -> Error {
unreachable!()
}
}
pub enum Infallible {}