pub struct SyntaxError {
pub source: SourceRange,
pub typ: SyntaxErrorType,
pub actual_token: Option<TokenType>,
}
Fields§
§source: SourceRange
§typ: SyntaxErrorType
§actual_token: Option<TokenType>
Implementations§
Source§impl SyntaxError
impl SyntaxError
pub fn new( typ: SyntaxErrorType, source: SourceRange, actual_token: Option<TokenType>, ) -> SyntaxError
pub fn from_loc( loc: SourceRange, typ: SyntaxErrorType, actual_token: Option<TokenType>, ) -> SyntaxError
Trait Implementations§
Source§impl Clone for SyntaxError
impl Clone for SyntaxError
Source§fn clone(&self) -> SyntaxError
fn clone(&self) -> SyntaxError
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for SyntaxError
impl RefUnwindSafe for SyntaxError
impl Send for SyntaxError
impl Sync for SyntaxError
impl Unpin 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