Trait Ast

Source
pub trait Ast: Sized {
    // Required method
    fn parse(iter: &mut impl Iterator<Item = Node>) -> Option<Self>;
}

Required Methods§

Source

fn parse(iter: &mut impl Iterator<Item = Node>) -> Option<Self>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<T> Ast for Box<T>
where T: Ast,

Source§

fn parse(iter: &mut impl Iterator<Item = Node>) -> Option<Self>

Source§

impl<T> Ast for Vec<T>
where T: Ast,

Source§

fn parse(iter: &mut impl Iterator<Item = Node>) -> Option<Self>

Implementors§