SpanRange in clippy_utils::source - Rust
Description: Conversion of a value into the range portion of a `Span`.

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§

Source

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

## 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 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§