Trait rustc_ast::ast_traits::AstDeref
source · pub trait AstDeref {
type Target;
// Required methods
fn ast_deref(&self) -> &Self::Target;
fn ast_deref_mut(&mut self) -> &mut Self::Target;
}
Expand description
A utility trait to reduce boilerplate.
Standard Deref(Mut)
cannot be reused due to coherence.