[][src]Trait rslint_core::Span

pub trait Span {
    fn as_range(&self) -> Range<usize>;
}

A value which can be used as the range inside of a diagnostic.

This is essentially a hack to allow us to use SyntaxElement, SyntaxNode, etc directly

Required methods

fn as_range(&self) -> Range<usize>

Loading content...

Implementations on Foreign Types

impl<T: Span, '_> Span for &'_ T[src]

impl<T: Span, '_> Span for &'_ mut T[src]

impl<T: Clone> Span for Range<T> where
    T: Into<usize>, 
[src]

impl Span for SyntaxNode[src]

impl Span for SyntaxToken[src]

impl Span for SyntaxElement[src]

impl Span for TextRange[src]

Loading content...

Implementors

impl<FileId: Clone> Span for Label<FileId>[src]

Loading content...