Trait brane_dsl::ast::Node

source ·
pub trait Node: Clone + Debug {
    // Required method
    fn range(&self) -> &TextRange;

    // Provided methods
    fn start(&self) -> &TextPos { ... }
    fn end(&self) -> &TextPos { ... }
}
Expand description

Defines a general AST node.

Required Methods§

source

fn range(&self) -> &TextRange

Returns the node’s source range.

Provided Methods§

source

fn start(&self) -> &TextPos

Returns the node’s start position.

source

fn end(&self) -> &TextPos

Returns the node’s end position.

Object Safety§

This trait is not object safe.

Implementors§