clippy_utils::source

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", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl SpanRange for Span

Source§

impl SpanRange for SpanData

Source§

impl SpanRange for Range<BytePos>

Implementors§