pub enum MeguError {
NotExist(PathBuf),
NotAFile(PathBuf),
Read((PathBuf, ReadError)),
Merge(ReadError),
}Expand description
General error type for interpret_file() function
Variants§
NotExist(PathBuf)
Emit when path does not exists
NotAFile(PathBuf)
Emit when path is not a file
Read((PathBuf, ReadError))
Emit when file contain syntax error
Merge(ReadError)
MeguError::Read but emit in merge() function
Trait Implementations§
Source§impl Error for MeguError
impl Error for MeguError
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()
Auto Trait Implementations§
impl Freeze for MeguError
impl !RefUnwindSafe for MeguError
impl Send for MeguError
impl Sync for MeguError
impl Unpin for MeguError
impl UnsafeUnpin for MeguError
impl !UnwindSafe for MeguError
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