pub struct SyntaxError {
pub pos: Pos,
pub message: String,
pub context: Option<String>,
}Expand description
The first syntax error found in a text.
Fields§
§pos: PosWhere the error was found.
message: StringWhat the error is.
context: Option<String>The enum or const being parsed when the error occurred, if its name had been read, e.g. enum Shape.
Trait 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 Forget for SyntaxError
impl Freeze for SyntaxError
impl Move for SyntaxError
impl RefUnwindSafe for SyntaxError
impl Send for SyntaxErrorwhere
RawVecInner: Send,
impl Sync for SyntaxErrorwhere
RawVecInner: Sync,
impl Unpin for SyntaxError
impl UnsafeUnpin for SyntaxError
impl UnwindSafe for SyntaxErrorwhere
RawVecInner: UnwindSafe,
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