Enum endbasic_core::syms::Symbol[][src]

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

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

impl Symbol[src]

pub fn metadata(&self) -> Option<&CallableMetadata>[src]

Returns the metadata for the symbol, if any.

Trait Implementations

impl Debug for Symbol[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.