rustc_hir_typeck::writeback

Trait Locatable

source
pub(crate) trait Locatable {
    // Required method
    fn to_span(&self, tcx: TyCtxt<'_>) -> Span;
}

Required Methods§

source

fn to_span(&self, tcx: TyCtxt<'_>) -> Span

Implementations on Foreign Types§

source§

impl Locatable for HirId

source§

fn to_span(&self, tcx: TyCtxt<'_>) -> Span

source§

impl Locatable for Span

source§

fn to_span(&self, _: TyCtxt<'_>) -> Span

Implementors§