paralegal_flow::utils

Trait Spanned

Source
pub trait Spanned<'tcx> {
    // Required method
    fn span(&self, tcx: TyCtxt<'tcx>) -> Span;
}

Required Methods§

Source

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

Implementations on Foreign Types§

Source§

impl<'tcx> Spanned<'tcx> for (&Body<'tcx>, RichLocation)

Source§

fn span(&self, tcx: TyCtxt<'tcx>) -> RustSpan

Source§

impl<'tcx> Spanned<'tcx> for (&Body<'tcx>, Location)

Source§

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

Source§

impl<'tcx> Spanned<'tcx> for Statement<'tcx>

Source§

fn span(&self, _tcx: TyCtxt<'tcx>) -> Span

Source§

impl<'tcx> Spanned<'tcx> for Terminator<'tcx>

Source§

fn span(&self, _tcx: TyCtxt<'tcx>) -> Span

Source§

impl<'tcx> Spanned<'tcx> for DefId

Source§

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

Implementors§