pub enum ParserPass {
PreParse,
LazyParse,
FullParse,
}Expand description
The parser mode. Port of enum ParserPass (JSParser.h:26-36). Same order:
PreParse, LazyParse, FullParse.
Variants§
PreParse
Parse and index the file’s functions without keeping an AST.
LazyParse
Re-parse, skipping function bodies indexed by a prior PreParse.
FullParse
Completely parse the full file (the default, eager mode).
Trait Implementations§
Source§impl Clone for ParserPass
impl Clone for ParserPass
Source§fn clone(&self) -> ParserPass
fn clone(&self) -> ParserPass
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ParserPass
Source§impl Debug for ParserPass
impl Debug for ParserPass
impl Eq for ParserPass
Source§impl PartialEq for ParserPass
impl PartialEq for ParserPass
impl StructuralPartialEq for ParserPass
Auto Trait Implementations§
impl Freeze for ParserPass
impl RefUnwindSafe for ParserPass
impl Send for ParserPass
impl Sync for ParserPass
impl Unpin for ParserPass
impl UnsafeUnpin for ParserPass
impl UnwindSafe for ParserPass
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