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);
    fn id(&self) -> NodeID;
    fn set_id(&mut self, id: NodeID);
}
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.

source

fn id(&self) -> NodeID

Returns the ID of the node.

source

fn set_id(&mut self, id: NodeID)

Sets the ID of the node.

Object Safety§

This trait is not object safe.

Implementors§