pub struct ParseError {
pub node_id: NodeId,
pub kind: ParseErrorKind,
}Fields§
§node_id: NodeId§kind: ParseErrorKindTrait Implementations§
Source§impl Clone for ParseError
impl Clone for ParseError
Source§fn clone(&self) -> ParseError
fn clone(&self) -> ParseError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ParseError
impl Debug for ParseError
Source§impl Display for ParseError
impl Display for ParseError
Source§impl Error for ParseError
impl Error for ParseError
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()
Source§impl IntoErrorReports for ParseError
impl IntoErrorReports for ParseError
fn to_error_reports( &self, db: &impl Db, file: TextFile, ) -> Result<ErrorReports, QueryError>
Source§impl PartialEq for ParseError
impl PartialEq for ParseError
impl StructuralPartialEq for ParseError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<E> Context<TracedError> for Ewhere
E: AnyError,
impl<E> Context<TracedError> for Ewhere
E: AnyError,
Source§fn context<C>(self, context: C) -> TracedError
fn context<C>(self, context: C) -> TracedError
Adds additional context. This becomes a no-op if the
traced feature is disabled.Source§fn with_context<F, C>(self, context: F) -> TracedError
fn with_context<F, C>(self, context: F) -> TracedError
Lazily adds additional context. This becomes a no-op if the
traced feature is disabled.Source§impl<E1, E2> IntoTraced<TracedError<E2>> for E1
impl<E1, E2> IntoTraced<TracedError<E2>> for E1
Source§fn into_traced(self) -> TracedError<E2>
fn into_traced(self) -> TracedError<E2>
Convert Error to a type containing a
TracedError mapping the underlying typeSource§impl<E> Traced<TracedError<E>> for Ewhere
E: AnyError,
impl<E> Traced<TracedError<E>> for Ewhere
E: AnyError,
Source§fn traced(self) -> TracedError<E>
fn traced(self) -> TracedError<E>
Convert Error to a type containing a
TracedError keeping the underlying typeSource§impl<E> TracedDyn<TracedError> for Ewhere
E: AnyError,
impl<E> TracedDyn<TracedError> for Ewhere
E: AnyError,
Source§fn traced_dyn(self) -> TracedError
fn traced_dyn(self) -> TracedError
Convert Error to
TracedError without caring about the underlying type