pub enum ParseErrorInner {
IO(Error),
NoLibSection {
path: PathBuf,
section: String,
},
Nom(Option<ErrorKind>),
Unknown(Span),
CircularDefinition(IndexMap<FileId, Option<Pos>>, usize),
}
Variants§
IO(Error)
NoLibSection
Nom(Option<ErrorKind>)
Nom Error
Unknown(Span)
something else
CircularDefinition(IndexMap<FileId, Option<Pos>>, usize)
Implementations§
Source§impl ParseErrorInner
impl ParseErrorInner
pub fn record(self, i: LocatedSpan<&'_ str>) -> ParseError
pub fn with(self, pos: Option<Pos>) -> ParseError
Trait Implementations§
Source§impl Debug for ParseErrorInner
impl Debug for ParseErrorInner
Source§impl Display for ParseErrorInner
impl Display for ParseErrorInner
Source§impl Error for ParseErrorInner
impl Error for ParseErrorInner
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 ParseErrorInner
impl !RefUnwindSafe for ParseErrorInner
impl Send for ParseErrorInner
impl Sync for ParseErrorInner
impl Unpin for ParseErrorInner
impl !UnwindSafe for ParseErrorInner
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