legion-error 0.0.0

High level intermediate representation for Nyar
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use crate::{LegionError, LegionErrorKind};

impl From<LegionErrorKind> for LegionError {
    fn from(error: LegionErrorKind) -> Self {
        Self { kind: error }
    }
}

impl From<std::io::Error> for LegionError {
    fn from(error: std::io::Error) -> Self {
        Self { kind: LegionErrorKind::IoError { source: error, path: None } }
    }
}