pub struct SyntaxErrorInfo {
pub offset: usize,
pub filename: String,
pub line: String,
pub lineno: usize,
pub msg: String,
}Expand description
Information about a syntax error.
This is used for special handling of syntax errors which have additional location information.
Fields§
§offset: usizeColumn offset where the error occurred.
filename: StringThe source file path.
line: StringThe source line containing the error.
lineno: usizeThe line number (1-based).
msg: StringThe error message.
Implementations§
Trait Implementations§
Source§impl Clone for SyntaxErrorInfo
impl Clone for SyntaxErrorInfo
Source§fn clone(&self) -> SyntaxErrorInfo
fn clone(&self) -> SyntaxErrorInfo
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SyntaxErrorInfo
impl RefUnwindSafe for SyntaxErrorInfo
impl Send for SyntaxErrorInfo
impl Sync for SyntaxErrorInfo
impl Unpin for SyntaxErrorInfo
impl UnwindSafe for SyntaxErrorInfo
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