pub trait Phase: 'static + Sealed {
type DeclSugar: Debug + Clone;
type ExprSugar: Debug + Clone;
}Required Associated Types§
Sourcetype DeclSugar: Debug + Clone
type DeclSugar: Debug + Clone
Phase-specific declaration sugar variants.
Carried by DeclKind::Sugar(_). For Raw this is
crate::syntax::ast::RawDeclSugar; for Desugared it is
Infallible so the variant cannot be constructed.
Sourcetype ExprSugar: Debug + Clone
type ExprSugar: Debug + Clone
Phase-specific expression sugar variants.
Carried by ExprKind::Sugar(_). For Raw this is
crate::syntax::ast::RawExprSugar; for Desugared it is
Infallible.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".