Type Alias FunctionDefinition

Source
pub type FunctionDefinition = Node<FunctionDefinitionData>;
Expand description

Type alias for Node<FunctionDefinitionData>.

Aliased Type§

struct FunctionDefinition {
    pub content: FunctionDefinitionData,
    pub span: Option<NodeSpan>,
}

Fields§

§content: FunctionDefinitionData

Contents of this syntax node

§span: Option<NodeSpan>

Span in the input this node was parsed from

Trait Implementations§

Source§

impl Extractable<TranslationUnit> for FunctionDefinition

Source§

fn wrap(source: &str) -> Cow<'_, str>

Wrap the given source which parses as Self into something that parses as R
Source§

fn extract(ast::TranslationUnit: TranslationUnit) -> Option<Self>

Extract the subtree for Self from a parent tree R
Source§

impl Host for FunctionDefinition

Source§

fn visit<V>(&self, visitor: &mut V)
where V: Visitor,

Visit an AST node.
Source§

impl HostMut for FunctionDefinition

Source§

fn visit_mut<V>(&mut self, visitor: &mut V)
where V: VisitorMut,

Visit an AST node.