rustc_utils::source_map::range

Trait ToSpan

Source
pub trait ToSpan {
    // Required method
    fn to_span(&self, tcx: TyCtxt<'_>) -> Result<Span>;
}
Expand description

Used to convert objects into a Span with access to TyCtxt

Required Methods§

Source

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

Implementors§