Trait rune::ast::OptionSpanned

source ·
pub trait OptionSpanned {
    // Required method
    fn option_span(&self) -> Option<Span>;
}
Expand description

Types for which we can optionally get a span.

Required Methods§

source

fn option_span(&self) -> Option<Span>

Get the optional span of the type.

Implementations on Foreign Types§

source§

impl<T> OptionSpanned for Option<T>
where T: Spanned,

source§

impl<T> OptionSpanned for [T]
where T: Spanned,

Take the span of a vector of spanned. Provides the span between the first and the last element.

source§

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

Implementors§

source§

impl OptionSpanned for AttrStyle

source§

impl OptionSpanned for BinOp

source§

impl OptionSpanned for Condition

source§

impl OptionSpanned for Expr

source§

impl OptionSpanned for ExprField

source§

impl OptionSpanned for ExprRangeLimits

source§

impl OptionSpanned for ExprSelectBranch

source§

impl OptionSpanned for Fields

source§

impl OptionSpanned for FnArg

source§

impl OptionSpanned for Item

source§

impl OptionSpanned for ItemModBody

source§

impl OptionSpanned for ItemUseSegment

source§

impl OptionSpanned for Lit

source§

impl OptionSpanned for ObjectIdent

source§

impl OptionSpanned for ObjectKey

source§

impl OptionSpanned for Pat

source§

impl OptionSpanned for PathSegment

source§

impl OptionSpanned for Stmt

source§

impl OptionSpanned for UnOp

source§

impl OptionSpanned for Visibility

source§

impl OptionSpanned for TokenStream

source§

impl OptionSpanned for TokenStreamIter<'_>

source§

impl OptionSpanned for Abstract

source§

impl OptionSpanned for AlignOf

source§

impl OptionSpanned for Amp

source§

impl OptionSpanned for AmpAmp

source§

impl OptionSpanned for AmpEq

source§

impl OptionSpanned for Arrow

source§

impl OptionSpanned for As

source§

impl OptionSpanned for Async

source§

impl OptionSpanned for At

source§

impl OptionSpanned for Attribute

source§

impl OptionSpanned for Await

source§

impl OptionSpanned for Bang

source§

impl OptionSpanned for BangEq

source§

impl OptionSpanned for Become

source§

impl OptionSpanned for Block

source§

impl OptionSpanned for Break

source§

impl OptionSpanned for Caret

source§

impl OptionSpanned for CaretEq

source§

impl OptionSpanned for CloseBrace

source§

impl OptionSpanned for CloseBracket

source§

impl OptionSpanned for CloseEmpty

source§

impl OptionSpanned for CloseParen

source§

impl OptionSpanned for Colon

source§

impl OptionSpanned for ColonColon

source§

impl OptionSpanned for Comma

source§

impl OptionSpanned for Const

source§

impl OptionSpanned for Continue

source§

impl OptionSpanned for Crate

source§

impl OptionSpanned for Dash

source§

impl OptionSpanned for DashEq

source§

impl OptionSpanned for Default

source§

impl OptionSpanned for Div

source§

impl OptionSpanned for Do

source§

impl OptionSpanned for Dollar

source§

impl OptionSpanned for Dot

source§

impl OptionSpanned for DotDot

source§

impl OptionSpanned for DotDotEq

source§

impl OptionSpanned for Else

source§

impl OptionSpanned for Enum

source§

impl OptionSpanned for Eq

source§

impl OptionSpanned for EqEq

source§

impl OptionSpanned for ExprAssign

source§

impl OptionSpanned for ExprAwait

source§

impl OptionSpanned for ExprBinary

source§

impl OptionSpanned for ExprBlock

source§

impl OptionSpanned for ExprBreak

source§

impl OptionSpanned for ExprCall

source§

impl OptionSpanned for ExprClosure

source§

impl OptionSpanned for ExprContinue

source§

impl OptionSpanned for ExprElse

source§

impl OptionSpanned for ExprElseIf

source§

impl OptionSpanned for ExprEmpty

source§

impl OptionSpanned for ExprFieldAccess

source§

impl OptionSpanned for ExprFor

source§

impl OptionSpanned for ExprGroup

source§

impl OptionSpanned for ExprIf

source§

impl OptionSpanned for ExprIndex

source§

impl OptionSpanned for ExprLet

source§

impl OptionSpanned for ExprLit

source§

impl OptionSpanned for ExprLoop

source§

impl OptionSpanned for ExprMatch

source§

impl OptionSpanned for ExprMatchBranch

source§

impl OptionSpanned for ExprObject

source§

impl OptionSpanned for ExprRange

source§

impl OptionSpanned for ExprReturn

source§

impl OptionSpanned for ExprSelect

source§

impl OptionSpanned for ExprSelectPatBranch

source§

impl OptionSpanned for ExprTry

source§

impl OptionSpanned for ExprTuple

source§

impl OptionSpanned for ExprUnary

source§

impl OptionSpanned for ExprVec

source§

impl OptionSpanned for ExprWhile

source§

impl OptionSpanned for ExprYield

source§

impl OptionSpanned for Extern

source§

impl OptionSpanned for False

source§

impl OptionSpanned for Field

source§

impl OptionSpanned for FieldAssign

source§

impl OptionSpanned for File

source§

impl OptionSpanned for Final

source§

impl OptionSpanned for Fn

source§

impl OptionSpanned for For

source§

impl OptionSpanned for Group

source§

impl OptionSpanned for Gt

source§

impl OptionSpanned for GtEq

source§

impl OptionSpanned for GtGt

source§

impl OptionSpanned for GtGtEq

source§

impl OptionSpanned for Ident

source§

impl OptionSpanned for If

source§

impl OptionSpanned for Impl

source§

impl OptionSpanned for In

source§

impl OptionSpanned for Is

source§

impl OptionSpanned for IsNot

source§

impl OptionSpanned for ItemConst

source§

impl OptionSpanned for ItemEnum

source§

impl OptionSpanned for ItemFn

source§

impl OptionSpanned for ItemImpl

source§

impl OptionSpanned for ItemInlineBody

source§

impl OptionSpanned for ItemMod

source§

impl OptionSpanned for ItemStruct

source§

impl OptionSpanned for ItemUse

source§

impl OptionSpanned for ItemUsePath

source§

impl OptionSpanned for ItemVariant

source§

impl OptionSpanned for Label

source§

impl OptionSpanned for Let

source§

impl OptionSpanned for LitBool

source§

impl OptionSpanned for LitByte

source§

impl OptionSpanned for LitByteStr

source§

impl OptionSpanned for LitChar

source§

impl OptionSpanned for LitNumber

source§

impl OptionSpanned for LitStr

source§

impl OptionSpanned for Local

source§

impl OptionSpanned for Loop

source§

impl OptionSpanned for Lt

source§

impl OptionSpanned for LtEq

source§

impl OptionSpanned for LtLt

source§

impl OptionSpanned for LtLtEq

source§

impl OptionSpanned for Macro

source§

impl OptionSpanned for MacroCall

source§

impl OptionSpanned for Match

source§

impl OptionSpanned for Mod

source§

impl OptionSpanned for Move

source§

impl OptionSpanned for Mut

source§

impl OptionSpanned for Not

source§

impl OptionSpanned for OffsetOf

source§

impl OptionSpanned for OpenBrace

source§

impl OptionSpanned for OpenBracket

source§

impl OptionSpanned for OpenEmpty

source§

impl OptionSpanned for OpenParen

source§

impl OptionSpanned for Override

source§

impl OptionSpanned for PatBinding

source§

impl OptionSpanned for PatIgnore

source§

impl OptionSpanned for PatLit

source§

impl OptionSpanned for PatObject

source§

impl OptionSpanned for PatPath

source§

impl OptionSpanned for PatRest

source§

impl OptionSpanned for PatTuple

source§

impl OptionSpanned for PatVec

source§

impl OptionSpanned for Path

source§

impl OptionSpanned for PathSegmentExpr

source§

impl OptionSpanned for Perc

source§

impl OptionSpanned for PercEq

source§

impl OptionSpanned for Pipe

source§

impl OptionSpanned for PipeEq

source§

impl OptionSpanned for PipePipe

source§

impl OptionSpanned for Plus

source§

impl OptionSpanned for PlusEq

source§

impl OptionSpanned for Pound

source§

impl OptionSpanned for Priv

source§

impl OptionSpanned for Proc

source§

impl OptionSpanned for Pub

source§

impl OptionSpanned for Pure

source§

impl OptionSpanned for QuestionMark

source§

impl OptionSpanned for Ref

source§

impl OptionSpanned for Return

source§

impl OptionSpanned for Rocket

source§

impl OptionSpanned for Select

source§

impl OptionSpanned for SelfType

source§

impl OptionSpanned for SelfValue

source§

impl OptionSpanned for SemiColon

source§

impl OptionSpanned for SizeOf

source§

impl OptionSpanned for SlashEq

source§

impl OptionSpanned for Star

source§

impl OptionSpanned for StarEq

source§

impl OptionSpanned for Static

source§

impl OptionSpanned for StmtSemi

source§

impl OptionSpanned for Struct

source§

impl OptionSpanned for Super

source§

impl OptionSpanned for Tilde

source§

impl OptionSpanned for True

source§

impl OptionSpanned for TypeOf

source§

impl OptionSpanned for Underscore

source§

impl OptionSpanned for Unsafe

source§

impl OptionSpanned for Use

source§

impl OptionSpanned for Virtual

source§

impl OptionSpanned for While

source§

impl OptionSpanned for Yield

source§

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

source§

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