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§