Trait rustc_driver::pretty::PrinterSupport [−][src]
trait PrinterSupport: PpAnn { fn sess<'a>(&'a self) -> &'a Session; fn pp_ann<'a>(&'a self) -> &'a PpAnn; }
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Required Methods
fn sess<'a>(&'a self) -> &'a Session
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Provides a uniform interface for re-extracting a reference to a
Session
from a value that now owns it.
fn pp_ann<'a>(&'a self) -> &'a PpAnn
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
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.)
Implementors
impl<'hir> PrinterSupport for NoAnn<'hir>
impl<'hir> PrinterSupport for IdentifiedAnnotation<'hir>
impl<'a> PrinterSupport for HygieneAnnotation<'a>