pub trait ToSpan { // Required method fn to_span(&self, tcx: TyCtxt<'_>) -> Result<Span>; }
Used to convert objects into a [Span] with access to [TyCtxt]
Span
TyCtxt