Skip to main content

Locatable

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

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

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§