Enum resast::ProgramPart
source · [−]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
sourceimpl<'a> Clone for ProgramPart<'a>
impl<'a> Clone for ProgramPart<'a>
sourcefn clone(&self) -> ProgramPart<'a>
fn clone(&self) -> ProgramPart<'a>
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 more
sourceimpl<'a> Debug for ProgramPart<'a>
impl<'a> Debug for ProgramPart<'a>
sourceimpl<'a> From<ProgramPart<'a>> for ProgramPart<'a>
impl<'a> From<ProgramPart<'a>> for ProgramPart<'a>
sourcefn from(other: ProgramPart<'a>) -> Self
fn from(other: ProgramPart<'a>) -> Self
Converts to this type from the input type.
sourceimpl<'a> PartialEq<ProgramPart<'a>> for ProgramPart<'a>
impl<'a> PartialEq<ProgramPart<'a>> for ProgramPart<'a>
sourcefn eq(&self, other: &ProgramPart<'a>) -> bool
fn eq(&self, other: &ProgramPart<'a>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
impl<'a> StructuralPartialEq for ProgramPart<'a>
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
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