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§
fn start(&self) -> usize
fn end(&self) -> usize
fn source(&self) -> IdentifiedSource
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.