pub struct ParseDiagnostic {
pub message: String,
pub offset: Option<usize>,
pub limit: Option<LimitKind>,
}Expand description
A recovered-parse diagnostic describing loss, a parse failure, or a limit violation.
Fields§
§message: StringWhat went wrong, as a human-readable message.
offset: Option<usize>Byte offset in the source, when known.
limit: Option<LimitKind>The limit that was exceeded, when the diagnostic is a limit violation.
Trait Implementations§
Source§impl Clone for ParseDiagnostic
impl Clone for ParseDiagnostic
Source§impl Debug for ParseDiagnostic
impl Debug for ParseDiagnostic
impl Eq for ParseDiagnostic
Source§impl PartialEq for ParseDiagnostic
impl PartialEq for ParseDiagnostic
impl StructuralPartialEq for ParseDiagnostic
Auto Trait Implementations§
impl Freeze for ParseDiagnostic
impl RefUnwindSafe for ParseDiagnostic
impl Send for ParseDiagnostic
impl Sync for ParseDiagnostic
impl Unpin for ParseDiagnostic
impl UnsafeUnpin for ParseDiagnostic
impl UnwindSafe for ParseDiagnostic
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.