Trait grit_util::Ast

source ·
pub trait Ast: Debug + PartialEq + Sized {
    type Node<'a>: AstNode
       where Self: 'a;

    // Required method
    fn root_node(&self) -> Self::Node<'_>;
}

Required Associated Types§

source

type Node<'a>: AstNode where Self: 'a

Required Methods§

source

fn root_node(&self) -> Self::Node<'_>

Object Safety§

This trait is not object safe.

Implementors§