pub enum Symbol {
    Array(Array),
    Command(Rc<dyn Command>),
    Function(Rc<dyn Function>),
    Variable(Value),
}
Expand description

Holds the definition of a symbol.

Variants§

§

Array(Array)

An array definition.

§

Command(Rc<dyn Command>)

A command definition.

§

Function(Rc<dyn Function>)

A function definition.

§

Variable(Value)

A variable definition.

Implementations§

Returns the metadata for the symbol, if any.

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.