Skip to main content

AstTypes

Trait AstTypes 

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

Required Associated Types§

Source

type Annotation: AstNode + Copy

An annotation on an arbitrary Expr or Pat

Source

type Literal: AstNode

A literal value

Source

type MacroId: AstNode + Hash + AsRef<str>

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

Source

type Symbol: AstNode + Copy + Hash

A (possibly interned) symbol or index

Source

type Path: AstNode

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".

Implementors§