pub struct Tree<'a> {
    pub name: &'a str,
    pub args: Vec<Tree<'a>>,
}
Expand description

A token of the form x(...) or x

Fields

name: &'a str

The name x

args: Vec<Tree<'a>>

The comma-separated contents of the (...), if any

Implementations

Parse an expression with round brackets

Parses a tree from a string

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.