Skip to main content

SpanRange

Trait SpanRange 

Source
pub trait SpanRange: Sized {
    // Required method
    fn into_range(self) -> Range<BytePos>;
}
Expand description

Conversion of a value into the range portion of a Span.

Required Methods§

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementations on Foreign Types§

Source§

impl SpanRange for Range<BytePos>

Source§

impl SpanRange for Span

Source§

impl SpanRange for SpanData

Implementors§