rune::compile

Trait Named

Source
pub trait Named {
    const ITEM: &'static Item;

    // Provided methods
    fn full_name(f: &mut Formatter<'_>) -> Result { ... }
    fn display() -> impl Display { ... }
}
Expand description

The trait used for something that can be statically named.

Required Associated Constants§

Source

const ITEM: &'static Item

The name item.

Provided Methods§

Source

fn full_name(f: &mut Formatter<'_>) -> Result

The exact type name

Source

fn display() -> impl Display

Return a display wrapper for the named type.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl Named for Ordering

Source§

const ITEM: &'static Item = _

Source§

impl Named for Option<Value>

Source§

const ITEM: &'static Item = _

Source§

fn full_name(f: &mut Formatter<'_>) -> Result

Source§

impl Named for Result<Value, Value>

Source§

const ITEM: &'static Item = _

Source§

fn full_name(f: &mut Formatter<'_>) -> Result

Source§

impl Named for bool

Source§

const ITEM: &'static Item = _

Source§

impl Named for char

Source§

const ITEM: &'static Item = _

Source§

impl Named for f64

Source§

const ITEM: &'static Item = _

Source§

impl Named for i64

Source§

const ITEM: &'static Item = _

Source§

impl Named for u64

Source§

const ITEM: &'static Item = _

Source§

impl Named for Error

Source§

const ITEM: &'static Item = _

Source§

fn full_name(f: &mut Formatter<'_>) -> Result

Source§

impl Named for ParseCharError

Source§

const ITEM: &'static Item = _

Source§

fn full_name(f: &mut Formatter<'_>) -> Result

Source§

impl Named for Error

Source§

const ITEM: &'static Item = _

Source§

fn full_name(f: &mut Formatter<'_>) -> Result

Source§

impl Named for ParseFloatError

Source§

const ITEM: &'static Item = _

Source§

fn full_name(f: &mut Formatter<'_>) -> Result

Source§

impl Named for ParseIntError

Source§

const ITEM: &'static Item = _

Source§

fn full_name(f: &mut Formatter<'_>) -> Result

Source§

impl Named for Utf8Error

Source§

const ITEM: &'static Item = _

Source§

fn full_name(f: &mut Formatter<'_>) -> Result

Source§

impl Named for Error

Available on crate feature std only.
Source§

const ITEM: &'static Item = _

Source§

fn full_name(f: &mut Formatter<'_>) -> Result

Implementors§

Source§

impl Named for ControlFlow

Source§

const ITEM: &'static Item = _

Source§

impl Named for GeneratorState

Source§

const ITEM: &'static Item = _

Source§

impl Named for FromUtf8Error

Available on crate feature alloc only.
Source§

const ITEM: &'static Item = _

Source§

impl Named for String

Source§

const ITEM: &'static Item = _

Source§

impl Named for Bencher

Source§

const ITEM: &'static Item = _

Source§

impl Named for Format

Source§

const ITEM: &'static Item = _

Source§

impl Named for Bytes

Source§

const ITEM: &'static Item = _

Source§

impl Named for Formatter

Source§

const ITEM: &'static Item = _

Source§

impl Named for Function

Source§

const ITEM: &'static Item = _

Source§

impl Named for Future

Source§

const ITEM: &'static Item = _

Source§

impl Named for Generator<Vm>

Source§

const ITEM: &'static Item = _

Source§

impl Named for Hasher

Source§

const ITEM: &'static Item = _

Source§

impl Named for Object

Source§

const ITEM: &'static Item = _

Source§

impl Named for OwnedTuple

Source§

const ITEM: &'static Item = _

Source§

impl Named for Range

Source§

const ITEM: &'static Item = _

Source§

impl Named for RangeFrom

Source§

const ITEM: &'static Item = _

Source§

impl Named for RangeFull

Source§

const ITEM: &'static Item = _

Source§

impl Named for RangeInclusive

Source§

const ITEM: &'static Item = _

Source§

impl Named for RangeTo

Source§

const ITEM: &'static Item = _

Source§

impl Named for RangeToInclusive

Source§

const ITEM: &'static Item = _

Source§

impl Named for Stream<Vm>

Source§

const ITEM: &'static Item = _

Source§

impl Named for Type

Source§

const ITEM: &'static Item = _

Source§

impl Named for Vec

Source§

const ITEM: &'static Item = _