Struct esr::ast::statement::Declarator
source · pub struct Declarator<'ast> {
pub id: Node<'ast, Pattern<'ast>>,
pub init: Option<ExpressionNode<'ast>>,
}
Fields
id: Node<'ast, Pattern<'ast>>
init: Option<ExpressionNode<'ast>>
Trait Implementations
sourceimpl<'ast> Clone for Declarator<'ast>
impl<'ast> Clone for Declarator<'ast>
sourcefn clone(&self) -> Declarator<'ast>
fn clone(&self) -> Declarator<'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 Declarator<'ast>
impl<'ast> Debug for Declarator<'ast>
sourceimpl<'ast> PartialEq<Declarator<'ast>> for Declarator<'ast>
impl<'ast> PartialEq<Declarator<'ast>> for Declarator<'ast>
sourcefn eq(&self, other: &Declarator<'ast>) -> bool
fn eq(&self, other: &Declarator<'ast>) -> bool
impl<'ast> Copy for Declarator<'ast>
impl<'ast> StructuralPartialEq for Declarator<'ast>
Auto Trait Implementations
impl<'ast> RefUnwindSafe for Declarator<'ast>
impl<'ast> Send for Declarator<'ast>
impl<'ast> !Sync for Declarator<'ast>
impl<'ast> Unpin for Declarator<'ast>
impl<'ast> UnwindSafe for Declarator<'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