[−][src]Struct rustc_driver::pretty::TypedAnnotation
Fields
tcx: TyCtxt<'tcx>maybe_typeck_results: Cell<Option<&'tcx TypeckResults<'tcx>>>Implementations
impl<'tcx> TypedAnnotation<'tcx>[src]
pub(in pretty) fn typeck_results(
&self
) -> &'tcx TypeckResults<'tcx>[src]
&self
) -> &'tcx TypeckResults<'tcx>
Gets the type-checking results for the current body.
As this will ICE if called outside bodies, only call when working with
Expr or Pat nodes (they are guaranteed to be found only in bodies).
Trait Implementations
impl<'tcx> HirPrinterSupport<'tcx> for TypedAnnotation<'tcx>[src]
pub(in pretty) fn sess(
&self
) -> &Session[src]
&self
) -> &Session
pub(in pretty) fn hir_map(
&self
) -> Option<Map<'tcx>>[src]
&self
) -> Option<Map<'tcx>>
pub(in pretty) fn pp_ann(
&self
) -> &dyn PpAnn[src]
&self
) -> &dyn PpAnn
pub(in pretty) fn node_path(
&self,
id: HirId
) -> Option<String>[src]
&self,
id: HirId
) -> Option<String>
impl<'tcx> PpAnn for TypedAnnotation<'tcx>[src]
Auto Trait Implementations
impl<'tcx> !RefUnwindSafe for TypedAnnotation<'tcx>
impl<'tcx> !Send for TypedAnnotation<'tcx>
impl<'tcx> !Sync for TypedAnnotation<'tcx>
impl<'tcx> Unpin for TypedAnnotation<'tcx>
impl<'tcx> !UnwindSafe for TypedAnnotation<'tcx>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,