Skip to main content

Span

Trait Span 

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

A trait for types that have a defined textual span within the source code.

Required Methods§

Source

fn span(&self) -> TextRange

Returns the TextRange corresponding to the element’s position in the source code.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§