pub struct ParseError { /* private fields */ }Expand description
Error returned by preprocess or preprocess_with_source_tracker when either the entry-point file or any included file contains invalid directives.
See also Error.
Implementations§
Source§impl ParseError
impl ParseError
Sourcepub fn source_file(&self) -> &Path
pub fn source_file(&self) -> &Path
The path of the file that contains the invalid directive.
Sourcepub fn line_number(&self) -> usize
pub fn line_number(&self) -> usize
The line number of the invalid directive.
Trait Implementations§
Source§impl Debug for ParseError
impl Debug for ParseError
Source§impl From<ParseError> for Error
impl From<ParseError> for Error
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 ParseError
impl RefUnwindSafe for ParseError
impl Send for ParseError
impl Sync for ParseError
impl Unpin for ParseError
impl UnwindSafe for ParseError
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