Struct docs::ast::FunctionLiteral
source · pub struct FunctionLiteral {
pub token: Token,
pub ident: Option<Identifier>,
pub parameters: Vec<Identifier>,
pub body: BlockStatement,
pub is_let_bind: bool,
}Fields§
§token: Token§ident: Option<Identifier>§parameters: Vec<Identifier>§body: BlockStatement§is_let_bind: boolTrait Implementations§
source§impl Clone for FunctionLiteral
impl Clone for FunctionLiteral
source§fn clone(&self) -> FunctionLiteral
fn clone(&self) -> FunctionLiteral
Returns a copy 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 Debug for FunctionLiteral
impl Debug for FunctionLiteral
source§impl Nodetrait for FunctionLiteral
impl Nodetrait for FunctionLiteral
source§impl PartialEq for FunctionLiteral
impl PartialEq for FunctionLiteral
source§fn eq(&self, other: &FunctionLiteral) -> bool
fn eq(&self, other: &FunctionLiteral) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for FunctionLiteral
Auto Trait Implementations§
impl Freeze for FunctionLiteral
impl RefUnwindSafe for FunctionLiteral
impl Send for FunctionLiteral
impl Sync for FunctionLiteral
impl Unpin for FunctionLiteral
impl UnwindSafe for FunctionLiteral
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