pub struct ParseIssue {
pub message: String,
pub span: Span,
}Expand description
A syntax problem reported by the parser. The analysis of the file continues on the parser’s recovered program.
Fields§
§message: StringThe parser’s message.
span: SpanLocation of the problem in the original file.
Trait Implementations§
Source§impl Clone for ParseIssue
impl Clone for ParseIssue
Source§impl Debug for ParseIssue
impl Debug for ParseIssue
Source§impl<'de> Deserialize<'de> for ParseIssue
impl<'de> Deserialize<'de> for ParseIssue
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ParseIssue
Source§impl PartialEq for ParseIssue
impl PartialEq for ParseIssue
Source§impl Serialize for ParseIssue
impl Serialize for ParseIssue
impl StructuralPartialEq for ParseIssue
Auto Trait Implementations§
impl Forget for ParseIssue
impl Freeze for ParseIssue
impl RefUnwindSafe for ParseIssue
impl Send for ParseIssue
impl Sync for ParseIssue
impl Unpin for ParseIssue
impl UnsafeUnpin for ParseIssue
impl UnwindSafe for ParseIssue
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more