pub enum ProgramPart<'a> {
Dir(Dir<'a>),
Decl(Decl<'a>),
Stmt(Stmt<'a>),
}
Expand description
A single part of a Javascript program. This will be either a Directive, Decl or a Stmt
Variants§
Dir(Dir<'a>)
A Directive like 'use strict';
Decl(Decl<'a>)
A variable, function or module declaration
Stmt(Stmt<'a>)
Any other kind of statement
Implementations§
Trait Implementations§
Source§impl<'a> Clone for ProgramPart<'a>
impl<'a> Clone for ProgramPart<'a>
Source§fn clone(&self) -> ProgramPart<'a>
fn clone(&self) -> ProgramPart<'a>
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 moreSource§impl<'a> Debug for ProgramPart<'a>
impl<'a> Debug for ProgramPart<'a>
Source§impl<'a> From<ProgramPart<'a>> for ProgramPart<'a>
impl<'a> From<ProgramPart<'a>> for ProgramPart<'a>
Source§fn from(other: ProgramPart<'a>) -> Self
fn from(other: ProgramPart<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> PartialEq for ProgramPart<'a>
impl<'a> PartialEq for ProgramPart<'a>
impl<'a> StructuralPartialEq for ProgramPart<'a>
Auto Trait Implementations§
impl<'a> Freeze for ProgramPart<'a>
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§
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