Trait nu_protocol::ShellTypeName[][src]

pub trait ShellTypeName {
    fn type_name(&self) -> &'static str;
}

A trait that allows structures to define a known .type_name() which pretty-prints the type

Required methods

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

Loading content...

Implementations on Foreign Types

impl<T: ShellTypeName> ShellTypeName for Spanned<T>[src]

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

Return the type_name of the spanned item

impl<T: ShellTypeName> ShellTypeName for &T[src]

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

Return the type_name for the borrowed reference

Loading content...

Implementors

impl ShellTypeName for Expression[src]

impl ShellTypeName for Literal[src]

impl ShellTypeName for Synthetic[src]

impl ShellTypeName for UntaggedValue[src]

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

Get the type name for the UntaggedValue

impl ShellTypeName for Primitive[src]

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

Get the name of the type of a Primitive value

impl ShellTypeName for SpannedExpression[src]

impl ShellTypeName for Value[src]

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

Get the type name for the Value

Loading content...