Struct yash_syntax::syntax::FunctionDefinition
source · [−]pub struct FunctionDefinition<H = HereDoc> {
pub has_keyword: bool,
pub name: Word,
pub body: Rc<FullCompoundCommand<H>>,
}
Expand description
Function definition command.
Fields
has_keyword: bool
Whether the function definition command starts with the function
reserved word.
name: Word
Function name.
body: Rc<FullCompoundCommand<H>>
Function body.
Trait Implementations
type Full = FunctionDefinition
type Full = FunctionDefinition
Final AST created by filling self
.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl<H = HereDoc> !RefUnwindSafe for FunctionDefinition<H>
impl<H = HereDoc> !Send for FunctionDefinition<H>
impl<H = HereDoc> !Sync for FunctionDefinition<H>
impl<H> Unpin for FunctionDefinition<H>
impl<H = HereDoc> !UnwindSafe for FunctionDefinition<H>
Blanket Implementations
Mutably borrows from an owned value. Read more