Trait shared::span::GetSpan

source ·
pub trait GetSpan {
    // Required method
    fn span(&self) -> &Span;
}
Expand description

Trait for getting the span of a node. For enums, this is useful for getting the span of the current variant, without having to match on each variant.

Required Methods§

source

fn span(&self) -> &Span

Implementors§