# Trait clippy_utils::source::SpanRange

source ·

    pub trait SpanRange {
        // Required method
        fn into_range(self) -> Range<BytePos>;
    }

Expand description

A type which can be converted to the range portion of a `Span`.

## Required Methods§

source

#### fn into_range(self) -> Range<BytePos>

## Implementations on Foreign Types§

source§

### impl SpanRange for Span

source§

#### fn into_range(self) -> Range<BytePos>

source§

### impl SpanRange for SpanData

source§

#### fn into_range(self) -> Range<BytePos>

source§

### impl SpanRange for Range<BytePos>

source§

#### fn into_range(self) -> Range<BytePos>

## Implementors§