[][src]Trait rustc_driver::pretty::HirPrinterSupport

trait HirPrinterSupport<'hir>: PpAnn {
    fn sess(&self) -> &Session;
fn hir_map(&self) -> Option<Map<'hir>>;
fn pp_ann(&self) -> &dyn PpAnn; fn node_path(&self, id: HirId) -> Option<String> { ... } }

Required methods

fn sess(&self) -> &Session

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

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

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

Loading content...

Provided methods

fn node_path(&self, id: HirId) -> Option<String>

Computes an user-readable representation of a path, if possible.

Loading content...

Implementors

impl<'hir> HirPrinterSupport<'hir> for IdentifiedAnnotation<'hir>[src]

impl<'hir> HirPrinterSupport<'hir> for NoAnn<'hir>[src]

impl<'tcx> HirPrinterSupport<'tcx> for TypedAnnotation<'tcx>[src]

Loading content...