pub struct ParseFileError {
pub span: Span,
pub message: String,
}Expand description
A parse failure with the source position recovered from the failing parse.
The span is whatever syan’s span-carrying ParseError
reports for the failure (recovered via span_of::<Span>); with our
Span::migrate being a union it covers the attempted
region rather than pinpointing a single token.
Fields§
§span: Span§message: StringTrait Implementations§
Source§impl Debug for ParseFileError
impl Debug for ParseFileError
Source§impl Display for ParseFileError
impl Display for ParseFileError
Source§impl Error for ParseFileError
impl Error for ParseFileError
1.30.0 · 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 ParseFileError
impl RefUnwindSafe for ParseFileError
impl Send for ParseFileError
impl Sync for ParseFileError
impl Unpin for ParseFileError
impl UnsafeUnpin for ParseFileError
impl UnwindSafe for ParseFileError
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