pub struct SyntaxError {
pub message: String,
pub code: &'static str,
pub range: TextRange,
}Expand description
A parse diagnostic: a message, the stable diagnostic code it will carry in
the coded model (FORM-… per ADR-0007 decision 2, TYPL-302 per typl
reference §16.4), and the source range of the offending token.
Fields§
§message: String§code: &'static str§range: TextRangeTrait Implementations§
Source§impl Clone for SyntaxError
impl Clone for SyntaxError
Source§impl Debug for SyntaxError
impl Debug for SyntaxError
impl Eq for SyntaxError
Source§impl PartialEq for SyntaxError
impl PartialEq for SyntaxError
impl StructuralPartialEq for SyntaxError
Auto Trait Implementations§
impl Freeze for SyntaxError
impl RefUnwindSafe for SyntaxError
impl Send for SyntaxError
impl Sync for SyntaxError
impl Unpin for SyntaxError
impl UnsafeUnpin for SyntaxError
impl UnwindSafe for SyntaxError
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