pub trait SpanLike: Copy {
// Required methods
fn derive_ranged(&self, range: Range<usize>) -> Self;
fn cover(self, other: Self) -> Self;
}Expand description
Trait for allowing tests to parse tokenstreams with dynamic span ranges
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".