pub struct LocatedParseError {
pub error: ParseError,
pub line: u32,
pub frame_index: u64,
}Expand description
A parse failure plus the 1-based file line and 0-based frame index.
The line is the cursor that produced the error. Metadata helpers that report line 2 are used only when that cursor is still 0.
Fields§
§error: ParseError§line: u32§frame_index: u64Implementations§
Source§impl LocatedParseError
impl LocatedParseError
pub fn new(error: ParseError, cursor_line: u32, frame_index: u64) -> Self
Trait Implementations§
Source§impl Debug for LocatedParseError
impl Debug for LocatedParseError
Source§impl Display for LocatedParseError
impl Display for LocatedParseError
Source§impl Error for LocatedParseError
impl Error for LocatedParseError
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 Forget for LocatedParseError
impl Freeze for LocatedParseError
impl Move for LocatedParseError
impl RefUnwindSafe for LocatedParseError
impl Send for LocatedParseError
impl Sync for LocatedParseError
impl Unpin for LocatedParseError
impl UnsafeUnpin for LocatedParseError
impl UnwindSafe for LocatedParseError
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