pub enum LoadError {
FileNotFound(PathBuf),
CircularDependency(Vec<PathBuf>),
ParseError(PathBuf, ParseError),
LexError(PathBuf, LexError),
IoError(String),
}Expand description
Errors that can occur during file loading
Variants§
FileNotFound(PathBuf)
File not found at the specified path
CircularDependency(Vec<PathBuf>)
Circular dependency detected
ParseError(PathBuf, ParseError)
Parse error in loaded file
LexError(PathBuf, LexError)
Lexer error in loaded file
IoError(String)
IO error reading file
Trait Implementations§
Source§impl Error for LoadError
impl Error for LoadError
1.30.0§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§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 LoadError
impl RefUnwindSafe for LoadError
impl Send for LoadError
impl Sync for LoadError
impl Unpin for LoadError
impl UnwindSafe for LoadError
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)