Struct boa::syntax::ast::node::declaration::function_decl::FunctionDecl [−][src]
pub struct FunctionDecl { /* fields omitted */ }Expand description
The function declaration (function statement) defines a function with the specified
parameters.
A function created with a function declaration is a Function object and has all the
properties, methods and behavior of Function.
A function can also be created using an expression (see function expression).
By default, functions return undefined. To return any other value, the function must have
a return statement that specifies the value to return.
More information:
Implementations
Gets the list of parameters of the function declaration.
Gets the body of the function declaration.
Trait Implementations
Performs the conversion.
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Runs Finalize::finalize() on this object and all contained subobjects Read more
Auto Trait Implementations
impl !RefUnwindSafe for FunctionDecl
impl !Send for FunctionDecl
impl !Sync for FunctionDecl
impl Unpin for FunctionDecl
impl UnwindSafe for FunctionDecl
Blanket Implementations
Mutably borrows from an owned value. Read more