Skip to main content

AstTypes

Trait AstTypes 

Source
pub trait AstTypes: Annotation {
    type Annotation: Annotation;
    type Literal: Annotation;
    type MacroId: Annotation + Hash + AsRef<str>;
    type Symbol: Annotation + Copy + Hash;
    type Path: Annotation;
}

Required Associated Types§

Source

type Annotation: Annotation

An annotation on an arbitrary Expr

Source

type Literal: Annotation

A literal value

Source

type MacroId: Annotation + Hash + AsRef<str>

A (possibly interned) symbol or index which implements AsRef<str>

Source

type Symbol: Annotation + Copy + Hash

A (possibly interned) symbol or index

Source

type Path: Annotation

A (possibly compound) symbol or index

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.

Implementors§