Struct parse_js::error::SyntaxError
source · pub struct SyntaxError { /* private fields */ }
Implementations
sourceimpl SyntaxError
impl SyntaxError
pub fn new(
typ: SyntaxErrorType,
source: Source,
position: usize,
actual_token: Option<TokenType>
) -> SyntaxError
pub fn from_loc(
loc: &SourceRange,
typ: SyntaxErrorType,
actual_token: Option<TokenType>
) -> SyntaxError
pub fn typ(&self) -> SyntaxErrorType
Trait Implementations
sourceimpl Clone for SyntaxError
impl Clone for SyntaxError
sourcefn clone(&self) -> SyntaxError
fn clone(&self) -> SyntaxError
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for SyntaxError
impl Debug for SyntaxError
sourceimpl PartialEq<SyntaxError> for SyntaxError
impl PartialEq<SyntaxError> for SyntaxError
impl Eq for SyntaxError
Auto Trait Implementations
impl RefUnwindSafe for SyntaxError
impl !Send for SyntaxError
impl !Sync for SyntaxError
impl Unpin for SyntaxError
impl UnwindSafe for SyntaxError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more