[][src]Struct endbasic_core::eval::CallableMetadata

pub struct CallableMetadata { /* fields omitted */ }

Representation of a callable's metadata.

The callable is expected to hold onto an instance of this object within its struct to make queries fast.

Implementations

impl CallableMetadata[src]

pub fn name(&self) -> &'static str[src]

Gets the callable's name, all in uppercase.

pub fn return_type(&self) -> VarType[src]

Gets the callable's return type.

pub fn syntax(&self) -> &'static str[src]

Gets the callable's syntax specification.

pub fn category(&self) -> &'static str[src]

Gets the callable's category.

pub fn description(&self) -> Lines<'static>[src]

Gets the callable's textual description as a collection of lines. The first line is the summary of the callable's purpose.

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.