rune::ast

Trait Spanned

Source
pub trait Spanned {
    // Required method
    fn span(&self) -> Span;
}
Expand description

Types for which we can get a span.

Required Methods§

Source

fn span(&self) -> Span

Get the span of the type.

Implementations on Foreign Types§

Source§

impl Spanned for Span<u32>

Source§

fn span(&self) -> Span

Source§

impl<A, B> Spanned for (A, B)
where A: Spanned, B: OptionSpanned,

Source§

fn span(&self) -> Span

Source§

impl<S> Spanned for (S, NonZeroId)
where S: Spanned,

Source§

fn span(&self) -> Span

Source§

impl<T> Spanned for &T
where T: ?Sized + Spanned,

Source§

fn span(&self) -> Span

Source§

impl<T> Spanned for &mut T
where T: ?Sized + Spanned,

Source§

fn span(&self) -> Span

Source§

impl<T> Spanned for Spanned<T>

Available on crate feature workspace only.
Source§

fn span(&self) -> Span

Source§

impl<T> Spanned for Box<T>
where T: Spanned,

Source§

fn span(&self) -> Span

Implementors§

Source§

impl Spanned for BinOp

Source§

impl Spanned for Condition

Source§

impl Spanned for Expr

Source§

impl Spanned for ExprClosureArgs

Source§

impl Spanned for ExprField

Source§

impl Spanned for ExprRangeLimits

Source§

impl Spanned for ExprSelectBranch

Source§

impl Spanned for FnArg

Source§

impl Spanned for Item

Source§

impl Spanned for ItemModBody

Source§

impl Spanned for ItemUseSegment

Source§

impl Spanned for Lit

Source§

impl Spanned for ObjectIdent

Source§

impl Spanned for ObjectKey

Source§

impl Spanned for Pat

Source§

impl Spanned for PathSegment

Source§

impl Spanned for Stmt

Source§

impl Spanned for UnOp

Source§

impl Spanned for Error

Source§

impl Spanned for Location

Source§

impl Spanned for WarningDiagnostic

Source§

impl Spanned for WorkspaceError

Available on crate feature workspace only.
Source§

impl Spanned for Abstract

Source§

impl Spanned for AlignOf

Source§

impl Spanned for Amp

Source§

impl Spanned for AmpAmp

Source§

impl Spanned for AmpEq

Source§

impl Spanned for Arrow

Source§

impl Spanned for As

Source§

impl Spanned for Async

Source§

impl Spanned for At

Source§

impl Spanned for Attribute

Source§

impl Spanned for Await

Source§

impl Spanned for Bang

Source§

impl Spanned for BangEq

Source§

impl Spanned for Become

Source§

impl Spanned for Block

Source§

impl Spanned for Break

Source§

impl Spanned for Caret

Source§

impl Spanned for CaretEq

Source§

impl Spanned for CloseBrace

Source§

impl Spanned for CloseBracket

Source§

impl Spanned for CloseEmpty

Source§

impl Spanned for CloseParen

Source§

impl Spanned for Colon

Source§

impl Spanned for ColonColon

Source§

impl Spanned for Comma

Source§

impl Spanned for Const

Source§

impl Spanned for Continue

Source§

impl Spanned for Crate

Source§

impl Spanned for Dash

Source§

impl Spanned for DashEq

Source§

impl Spanned for Default

Source§

impl Spanned for Div

Source§

impl Spanned for Do

Source§

impl Spanned for Dollar

Source§

impl Spanned for Dot

Source§

impl Spanned for DotDot

Source§

impl Spanned for DotDotEq

Source§

impl Spanned for Else

Source§

impl Spanned for Enum

Source§

impl Spanned for Eq

Source§

impl Spanned for EqEq

Source§

impl Spanned for ExprAssign

Source§

impl Spanned for ExprAwait

Source§

impl Spanned for ExprBinary

Source§

impl Spanned for ExprBlock

Source§

impl Spanned for ExprBreak

Source§

impl Spanned for ExprCall

Source§

impl Spanned for ExprClosure

Source§

impl Spanned for ExprContinue

Source§

impl Spanned for ExprDefaultBranch

Source§

impl Spanned for ExprElse

Source§

impl Spanned for ExprElseIf

Source§

impl Spanned for ExprEmpty

Source§

impl Spanned for ExprFieldAccess

Source§

impl Spanned for ExprFor

Source§

impl Spanned for ExprGroup

Source§

impl Spanned for ExprIf

Source§

impl Spanned for ExprIndex

Source§

impl Spanned for ExprLet

Source§

impl Spanned for ExprLit

Source§

impl Spanned for ExprLoop

Source§

impl Spanned for ExprMatch

Source§

impl Spanned for ExprMatchBranch

Source§

impl Spanned for ExprObject

Source§

impl Spanned for ExprRange

Source§

impl Spanned for ExprReturn

Source§

impl Spanned for ExprSelect

Source§

impl Spanned for ExprSelectPatBranch

Source§

impl Spanned for ExprTry

Source§

impl Spanned for ExprTuple

Source§

impl Spanned for ExprUnary

Source§

impl Spanned for ExprVec

Source§

impl Spanned for ExprWhile

Source§

impl Spanned for ExprYield

Source§

impl Spanned for Extern

Source§

impl Spanned for False

Source§

impl Spanned for Field

Source§

impl Spanned for FieldAssign

Source§

impl Spanned for Final

Source§

impl Spanned for Fn

Source§

impl Spanned for For

Source§

impl Spanned for Group

Source§

impl Spanned for Gt

Source§

impl Spanned for GtEq

Source§

impl Spanned for GtGt

Source§

impl Spanned for GtGtEq

Source§

impl Spanned for Ident

Source§

impl Spanned for If

Source§

impl Spanned for Impl

Source§

impl Spanned for In

Source§

impl Spanned for Is

Source§

impl Spanned for IsNot

Source§

impl Spanned for ItemConst

Source§

impl Spanned for ItemEnum

Source§

impl Spanned for ItemFn

Source§

impl Spanned for ItemImpl

Source§

impl Spanned for ItemInlineBody

Source§

impl Spanned for ItemMod

Source§

impl Spanned for ItemStruct

Source§

impl Spanned for ItemUse

Source§

impl Spanned for ItemUsePath

Source§

impl Spanned for ItemVariant

Source§

impl Spanned for Label

Source§

impl Spanned for Let

Source§

impl Spanned for LitBool

Source§

impl Spanned for LitByte

Source§

impl Spanned for LitByteStr

Source§

impl Spanned for LitChar

Source§

impl Spanned for LitNumber

Source§

impl Spanned for LitStr

Source§

impl Spanned for Local

Source§

impl Spanned for Loop

Source§

impl Spanned for Lt

Source§

impl Spanned for LtEq

Source§

impl Spanned for LtLt

Source§

impl Spanned for LtLtEq

Source§

impl Spanned for Macro

Source§

impl Spanned for MacroCall

Source§

impl Spanned for Match

Source§

impl Spanned for Mod

Source§

impl Spanned for Move

Source§

impl Spanned for Mut

Source§

impl Spanned for Not

Source§

impl Spanned for OffsetOf

Source§

impl Spanned for OpenBrace

Source§

impl Spanned for OpenBracket

Source§

impl Spanned for OpenEmpty

Source§

impl Spanned for OpenParen

Source§

impl Spanned for Override

Source§

impl Spanned for PatBinding

Source§

impl Spanned for PatIgnore

Source§

impl Spanned for PatLit

Source§

impl Spanned for PatObject

Source§

impl Spanned for PatPath

Source§

impl Spanned for PatRest

Source§

impl Spanned for PatTuple

Source§

impl Spanned for PatVec

Source§

impl Spanned for Path

Source§

impl Spanned for PathSegmentExpr

Source§

impl Spanned for Perc

Source§

impl Spanned for PercEq

Source§

impl Spanned for Pipe

Source§

impl Spanned for PipeEq

Source§

impl Spanned for PipePipe

Source§

impl Spanned for Plus

Source§

impl Spanned for PlusEq

Source§

impl Spanned for Pound

Source§

impl Spanned for Priv

Source§

impl Spanned for Proc

Source§

impl Spanned for Pub

Source§

impl Spanned for Pure

Source§

impl Spanned for QuestionMark

Source§

impl Spanned for Ref

Source§

impl Spanned for Return

Source§

impl Spanned for Rocket

Source§

impl Spanned for Select

Source§

impl Spanned for SelfType

Source§

impl Spanned for SelfValue

Source§

impl Spanned for SemiColon

Source§

impl Spanned for Shebang

Source§

impl Spanned for SizeOf

Source§

impl Spanned for SlashEq

Source§

impl Spanned for rune::ast::Span

Source§

impl Spanned for Star

Source§

impl Spanned for StarEq

Source§

impl Spanned for Static

Source§

impl Spanned for StmtSemi

Source§

impl Spanned for Struct

Source§

impl Spanned for Super

Source§

impl Spanned for Tilde

Source§

impl Spanned for Token

Source§

impl Spanned for True

Source§

impl Spanned for TypeOf

Source§

impl Spanned for Underscore

Source§

impl Spanned for Unsafe

Source§

impl Spanned for Use

Source§

impl Spanned for Virtual

Source§

impl Spanned for While

Source§

impl Spanned for Yield

Source§

impl Spanned for dyn Located

Source§

impl<T> Spanned for rune::alloc::Box<T>
where T: Spanned,

Source§

impl<T, S> Spanned for AngleBracketed<T, S>

Source§

impl<T, S> Spanned for Braced<T, S>

Source§

impl<T, S> Spanned for Bracketed<T, S>

Source§

impl<T, S> Spanned for Parenthesized<T, S>

Source§

impl<T: Spanned> Spanned for EqValue<T>