Enum resast::ProgramPart [−][src]
Expand description
A single part of a Javascript program. This will be either a Directive, Decl or a Stmt
Variants
Dir(Dir<'a>)
Tuple Fields
0: Dir<'a>
A Directive like 'use strict';
Decl(Decl<'a>)
Tuple Fields
0: Decl<'a>
A variable, function or module declaration
Stmt(Stmt<'a>)
Tuple Fields
0: Stmt<'a>
Any other kind of statement
Implementations
Trait Implementations
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl<'a> RefUnwindSafe for ProgramPart<'a>
impl<'a> Send for ProgramPart<'a>
impl<'a> Sync for ProgramPart<'a>
impl<'a> Unpin for ProgramPart<'a>
impl<'a> UnwindSafe for ProgramPart<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more