Trait rustpython_ast::located::Located

source ·
pub trait Located {
    // Required method
    fn range(&self) -> SourceRange;

    // Provided methods
    fn location(&self) -> SourceLocation { ... }
    fn end_location(&self) -> Option<SourceLocation> { ... }
}

Required Methods§

Provided Methods§

Implementors§

source§

impl Located for Alias

source§

impl Located for Arg

source§

impl Located for ExceptHandler

source§

impl Located for ExceptHandlerExceptHandler

source§

impl Located for Expr

source§

impl Located for ExprAttribute

source§

impl Located for ExprAwait

source§

impl Located for ExprBinOp

source§

impl Located for ExprBoolOp

source§

impl Located for ExprCall

source§

impl Located for ExprCompare

source§

impl Located for ExprConstant

source§

impl Located for ExprDict

source§

impl Located for ExprDictComp

source§

impl Located for ExprFormattedValue

source§

impl Located for ExprGeneratorExp

source§

impl Located for ExprIfExp

source§

impl Located for ExprJoinedStr

source§

impl Located for ExprLambda

source§

impl Located for ExprList

source§

impl Located for ExprListComp

source§

impl Located for ExprName

source§

impl Located for ExprNamedExpr

source§

impl Located for ExprSet

source§

impl Located for ExprSetComp

source§

impl Located for ExprSlice

source§

impl Located for ExprStarred

source§

impl Located for ExprSubscript

source§

impl Located for ExprTuple

source§

impl Located for ExprUnaryOp

source§

impl Located for ExprYield

source§

impl Located for ExprYieldFrom

source§

impl Located for Keyword

source§

impl Located for Pattern

source§

impl Located for PatternMatchAs

source§

impl Located for PatternMatchClass

source§

impl Located for PatternMatchMapping

source§

impl Located for PatternMatchOr

source§

impl Located for PatternMatchSequence

source§

impl Located for PatternMatchSingleton

source§

impl Located for PatternMatchStar

source§

impl Located for PatternMatchValue

source§

impl Located for Stmt

source§

impl Located for StmtAnnAssign

source§

impl Located for StmtAssert

source§

impl Located for StmtAssign

source§

impl Located for StmtAsyncFor

source§

impl Located for StmtAsyncFunctionDef

source§

impl Located for StmtAsyncWith

source§

impl Located for StmtAugAssign

source§

impl Located for StmtBreak

source§

impl Located for StmtClassDef

source§

impl Located for StmtContinue

source§

impl Located for StmtDelete

source§

impl Located for StmtExpr

source§

impl Located for StmtFor

source§

impl Located for StmtFunctionDef

source§

impl Located for StmtGlobal

source§

impl Located for StmtIf

source§

impl Located for StmtImport

source§

impl Located for StmtImportFrom

source§

impl Located for StmtMatch

source§

impl Located for StmtNonlocal

source§

impl Located for StmtPass

source§

impl Located for StmtRaise

source§

impl Located for StmtReturn

source§

impl Located for StmtTry

source§

impl Located for StmtTryStar

source§

impl Located for StmtTypeAlias

source§

impl Located for StmtWhile

source§

impl Located for StmtWith

source§

impl Located for TypeParam

source§

impl Located for TypeParamParamSpec

source§

impl Located for TypeParamTypeVar

source§

impl Located for TypeParamTypeVarTuple