pub enum Token<'link> {
    Integer(i64),
    Real(f64),
    Symbol(LinkStr<'link>),
    String(LinkStr<'link>),
    Function {
        length: usize,
    },
}
Expand description

Basic unit of expression data read from a Link.

Link::get_token() is used to read the next available token from a Link.

Variants

Integer(i64)

Real(f64)

Symbol(LinkStr<'link>)

String(LinkStr<'link>)

Function

Fields

length: usize

A function expression with length elements.

The next expression is the head of the function, followed by length number of expression elements.

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.