Span

Trait Span 

Source
pub trait Span:
    Clone
    + Debug
    + PartialEq
    + Span {
    // Required methods
    fn start(&self) -> usize;
    fn end(&self) -> usize;
    fn source(&self) -> IdentifiedSource;
    fn extract(&self, source: &str) -> String;
}

Required Methods§

Source

fn start(&self) -> usize

Source

fn end(&self) -> usize

Source

fn source(&self) -> IdentifiedSource

Source

fn extract(&self, source: &str) -> String

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.

Implementors§