Skip to main content

GetSpan

Trait GetSpan 

Source
pub trait GetSpan {
    // Required method
    fn get_span(&self) -> Span;
}
Expand description

Gets the Span of Syn metadata

Required Methods§

Source

fn get_span(&self) -> 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 GetSpan for Meta

Source§

fn get_span(&self) -> Span

Source§

impl GetSpan for NestedMeta

Source§

fn get_span(&self) -> Span

Source§

impl GetSpan for Attribute

Source§

fn get_span(&self) -> Span

Source§

impl GetSpan for Attribute

Source§

fn get_span(&self) -> Span

Implementors§