Trait graphql_toolkit_ast::AstPositionExt

source ·
pub trait AstPositionExt: Sized {
    // Provided methods
    fn default_position(self) -> Positioned<Self> { ... }
    fn with_position(self, pos: Pos) -> Positioned<Self> { ... }
}
Expand description

Extension trait for adding position information to AST nodes.

Provided Methods§

source

fn default_position(self) -> Positioned<Self>

Create a positioned version of this AST node with the default position (0:0).

source

fn with_position(self, pos: Pos) -> Positioned<Self>

Create a positioned version of this AST node with the given position.

Object Safety§

This trait is not object safe.

Implementors§