Span

Type Alias Span 

Source
pub type Span = Transparent<Span>;
Expand description

Reexport of Span, but this time forgeable in tests and transparent to Eq and Hash.

Aliased Type§

pub struct Span { /* private fields */ }

Trait Implementations§

Source§

impl TryDefSite for Span

Always None: Span provides a usage site not a def site. Put it in a wrapper if you want one.

Source§

fn try_def_site(&self) -> Option<Span>

Try to get a span from the object (by default we don’t get any, but a wrapper might provide one)
Source§

impl TrySpan for Span

Always Some.

Source§

fn try_span(&self) -> Option<Span>

Try to get a span from the object (by default we don’t get any, but a wrapper might provide one)