Trait 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§