Trait rustc_driver::pretty::HirPrinterSupport [−][src]
trait HirPrinterSupport<'hir>: PpAnn { fn sess(&self) -> &Session; fn hir_map(&self) -> Option<Map<'hir>>; fn pp_ann(&self) -> &dyn PpAnn; }
Required methods
fn sess(&self) -> &Session[src]
Provides a uniform interface for re-extracting a reference to a
Session from a value that now owns it.
fn hir_map(&self) -> Option<Map<'hir>>[src]
Provides a uniform interface for re-extracting a reference to an
hir_map::Map from a value that now owns it.
fn pp_ann(&self) -> &dyn PpAnn[src]
Produces the pretty-print annotation object.
(Rust does not yet support upcasting from a trait object to an object for one of its super-traits.)