Struct rusty_peg::tree::ParseTree [] [src]

pub struct ParseTree<K> {
    pub kind: K,
    pub span: Span,
    pub child: Option<Rc<ParseTree<K>>>,
    pub sibling: Option<Rc<ParseTree<K>>>,
}

Fields

kind: K span: Span child: Option<Rc<ParseTree<K>>> sibling: Option<Rc<ParseTree<K>>>

Methods

impl<K> ParseTree<K>
[src]

fn new(kind: K, span: Span, child: Option<ParseTree<K>>) -> ParseTree<K>

fn sibling_chain(children: Vec<ParseTree<K>>) -> Option<ParseTree<K>>

fn add_child_front(&mut self, child: ParseTree<K>)

fn children(&self) -> ChildIterator<K>

Trait Implementations

impl<K: Debug> Debug for ParseTree<K>
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.