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§
Sourcetype Annotation: Annotation
type Annotation: Annotation
An annotation on an arbitrary Expr
Sourcetype Literal: Annotation
type Literal: Annotation
A literal value
Sourcetype MacroId: Annotation + Hash + AsRef<str>
type MacroId: Annotation + Hash + AsRef<str>
A (possibly interned) symbol or index which implements AsRef<str>
Sourcetype Symbol: Annotation + Copy + Hash
type Symbol: Annotation + Copy + Hash
A (possibly interned) symbol or index
Sourcetype Path: Annotation
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.