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§

Object Safety§

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§