Trait SpanExt

Source
pub trait SpanExt: ProcMacroExt<SpanExt = Self> + Span { }
Expand description

Extensions for Span.

This trait is implemented for Span in proc_macro and proc_macro2 if the corresponding feature is enabled.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl SpanExt for Span

Available on crate feature proc-macro only.
Source§

impl SpanExt for Span

Available on crate feature proc-macro2 only.

Implementors§