pub struct ParseErrorNode {
pub message: String,
pub code: String,
pub expected: Option<String>,
pub found: Option<String>,
pub suggestion: Option<String>,
pub category: Option<DiagnosticCategory>,
}Expand description
Placeholder node inserted when resilient parsing skips malformed input.
Fields§
§message: String§code: String§expected: Option<String>§found: Option<String>§suggestion: Option<String>§category: Option<DiagnosticCategory>Trait Implementations§
Source§impl Clone for ParseErrorNode
impl Clone for ParseErrorNode
Source§fn clone(&self) -> ParseErrorNode
fn clone(&self) -> ParseErrorNode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ParseErrorNode
impl Debug for ParseErrorNode
Source§impl PartialEq for ParseErrorNode
impl PartialEq for ParseErrorNode
Source§fn eq(&self, other: &ParseErrorNode) -> bool
fn eq(&self, other: &ParseErrorNode) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ParseErrorNode
impl StructuralPartialEq for ParseErrorNode
Auto Trait Implementations§
impl Freeze for ParseErrorNode
impl RefUnwindSafe for ParseErrorNode
impl Send for ParseErrorNode
impl Sync for ParseErrorNode
impl Unpin for ParseErrorNode
impl UnsafeUnpin for ParseErrorNode
impl UnwindSafe for ParseErrorNode
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