Trait leo_ast::common::node::Node

source ·
pub trait Node: Debug + Display + Clone + PartialEq + Eq + Serialize + DeserializeOwned {
    // Required methods
    fn span(&self) -> Span;
    fn set_span(&mut self, span: Span);
}
Expand description

A node in the AST.

Required Methods§

source

fn span(&self) -> Span

Returns the span of the node.

source

fn set_span(&mut self, span: Span)

Sets the span of the node.

Implementors§