Struct esr::ast::statement::TryStatement
source · pub struct TryStatement<'ast> {
pub block: BlockNode<'ast, Statement<'ast>>,
pub handler: Option<Node<'ast, CatchClause<'ast>>>,
pub finalizer: Option<BlockNode<'ast, Statement<'ast>>>,
}
Fields
block: BlockNode<'ast, Statement<'ast>>
handler: Option<Node<'ast, CatchClause<'ast>>>
finalizer: Option<BlockNode<'ast, Statement<'ast>>>
Trait Implementations
sourceimpl<'ast> Clone for TryStatement<'ast>
impl<'ast> Clone for TryStatement<'ast>
sourcefn clone(&self) -> TryStatement<'ast>
fn clone(&self) -> TryStatement<'ast>
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<'ast> Debug for TryStatement<'ast>
impl<'ast> Debug for TryStatement<'ast>
sourceimpl<'ast> From<TryStatement<'ast>> for Statement<'ast>
impl<'ast> From<TryStatement<'ast>> for Statement<'ast>
sourcefn from(val: TryStatement<'ast>) -> Self
fn from(val: TryStatement<'ast>) -> Self
Converts to this type from the input type.
sourceimpl<'ast> PartialEq<TryStatement<'ast>> for TryStatement<'ast>
impl<'ast> PartialEq<TryStatement<'ast>> for TryStatement<'ast>
sourcefn eq(&self, other: &TryStatement<'ast>) -> bool
fn eq(&self, other: &TryStatement<'ast>) -> bool
impl<'ast> Copy for TryStatement<'ast>
impl<'ast> StructuralPartialEq for TryStatement<'ast>
Auto Trait Implementations
impl<'ast> RefUnwindSafe for TryStatement<'ast>
impl<'ast> Send for TryStatement<'ast>
impl<'ast> !Sync for TryStatement<'ast>
impl<'ast> Unpin for TryStatement<'ast>
impl<'ast> UnwindSafe for TryStatement<'ast>
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