pub enum IncludeError {
NoBoundReturned(PathBuf),
LinemarkerInDtsi(PathBuf),
IOError(Error, Option<PathBuf>),
ParseError(ParseError),
}
Expand description
Defines various errors that may happen in the include process.
Variants§
NoBoundReturned(PathBuf)
No bounds returned after parsing file
LinemarkerInDtsi(PathBuf)
Extraneous CPP linemarker found in file included by DT /include/
statement. This should never happen, but if it does the file where
the linemarker was found needs to be cleaned up.
IOError(Error, Option<PathBuf>)
Some IO Error. Probably from trying to open a file. May include the path trying to be opened.
ParseError(ParseError)
Some ParseError
. Probably from a failed attempt to convert from lines
to byte offsets.
Trait Implementations§
Source§impl Debug for IncludeError
impl Debug for IncludeError
Source§impl From<Error> for IncludeError
impl From<Error> for IncludeError
Source§impl From<ParseError> for IncludeError
impl From<ParseError> for IncludeError
Source§fn from(err: ParseError) -> Self
fn from(err: ParseError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for IncludeError
impl !RefUnwindSafe for IncludeError
impl Send for IncludeError
impl Sync for IncludeError
impl Unpin for IncludeError
impl !UnwindSafe for IncludeError
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