Trait tvix_eval::spans::ToSpan

source ·
pub trait ToSpan {
    // Required method
    fn span_for(&self, file: &File) -> Span;
}
Expand description

Trait implemented by all types from which we can retrieve a span.

Required Methods§

source

fn span_for(&self, file: &File) -> Span

Implementations on Foreign Types§

source§

impl ToSpan for Attr

source§

fn span_for(&self, file: &File) -> Span

source§

impl ToSpan for Expr

source§

fn span_for(&self, file: &File) -> Span

source§

impl ToSpan for Span

source§

fn span_for(&self, _: &File) -> Span

source§

impl ToSpan for Apply

source§

fn span_for(&self, file: &File) -> Span

source§

impl ToSpan for Assert

source§

fn span_for(&self, file: &File) -> Span

source§

impl ToSpan for AttrSet

source§

fn span_for(&self, file: &File) -> Span

source§

impl ToSpan for Attrpath

source§

fn span_for(&self, file: &File) -> Span

source§

impl ToSpan for AttrpathValue

source§

fn span_for(&self, file: &File) -> Span

source§

impl ToSpan for BinOp

source§

fn span_for(&self, file: &File) -> Span

source§

impl ToSpan for HasAttr

source§

fn span_for(&self, file: &File) -> Span

source§

impl ToSpan for Ident

source§

fn span_for(&self, file: &File) -> Span

source§

impl ToSpan for IdentParam

source§

fn span_for(&self, file: &File) -> Span

source§

impl ToSpan for IfElse

source§

fn span_for(&self, file: &File) -> Span

source§

impl ToSpan for Inherit

source§

fn span_for(&self, file: &File) -> Span

source§

impl ToSpan for Interpol

source§

fn span_for(&self, file: &File) -> Span

source§

impl ToSpan for Lambda

source§

fn span_for(&self, file: &File) -> Span

source§

impl ToSpan for LegacyLet

source§

fn span_for(&self, file: &File) -> Span

source§

impl ToSpan for LetIn

source§

fn span_for(&self, file: &File) -> Span

source§

impl ToSpan for List

source§

fn span_for(&self, file: &File) -> Span

source§

impl ToSpan for Literal

source§

fn span_for(&self, file: &File) -> Span

source§

impl ToSpan for PatBind

source§

fn span_for(&self, file: &File) -> Span

source§

impl ToSpan for Path

source§

fn span_for(&self, file: &File) -> Span

source§

impl ToSpan for Pattern

source§

fn span_for(&self, file: &File) -> Span

source§

impl ToSpan for Select

source§

fn span_for(&self, file: &File) -> Span

source§

impl ToSpan for Str

source§

fn span_for(&self, file: &File) -> Span

source§

impl ToSpan for UnaryOp

source§

fn span_for(&self, file: &File) -> Span

source§

impl ToSpan for With

source§

fn span_for(&self, file: &File) -> Span

source§

impl ToSpan for TextRange

source§

fn span_for(&self, file: &File) -> Span

source§

impl ToSpan for SyntaxNode

source§

fn span_for(&self, file: &File) -> Span

source§

impl ToSpan for SyntaxToken

source§

fn span_for(&self, file: &File) -> Span

Implementors§