[−][src]Trait rustc_driver::pretty::HirPrinterSupport
Required methods
pub(in pretty) fn sess(
&self
) -> &Session[src]
&self
) -> &Session
Provides a uniform interface for re-extracting a reference to a
Session from a value that now owns it.
pub(in pretty) fn hir_map(
&self
) -> Option<Map<'hir>>[src]
&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.
pub(in pretty) fn pp_ann(
&self
) -> &dyn PpAnn[src]
&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.)
Provided methods
pub(in pretty) fn node_path(
&self,
id: HirId
) -> Option<String>[src]
&self,
id: HirId
) -> Option<String>
Computes an user-readable representation of a path, if possible.
Implementors
impl<'hir> HirPrinterSupport<'hir> for IdentifiedAnnotation<'hir>[src]
pub(in pretty) fn sess(
&self
) -> &Session[src]
&self
) -> &Session
pub(in pretty) fn hir_map(
&self
) -> Option<Map<'hir>>[src]
&self
) -> Option<Map<'hir>>
pub(in pretty) fn pp_ann(
&self
) -> &dyn PpAnn[src]
&self
) -> &dyn PpAnn
impl<'hir> HirPrinterSupport<'hir> for NoAnn<'hir>[src]
pub(in pretty) fn sess(
&self
) -> &Session[src]
&self
) -> &Session
pub(in pretty) fn hir_map(
&self
) -> Option<Map<'hir>>[src]
&self
) -> Option<Map<'hir>>
pub(in pretty) fn pp_ann(
&self
) -> &dyn PpAnn[src]
&self
) -> &dyn PpAnn