pub trait CodeLocation {
    // Required method
    fn loc(&self) -> Loc;
}
Expand description

Returns the code location.

Required Methods§

source

fn loc(&self) -> Loc

Returns the code location of self.

Implementations on Foreign Types§

source§

impl<'a, T: ?Sized + ToOwned + CodeLocation> CodeLocation for Cow<'a, T>

source§

fn loc(&self) -> Loc

source§

impl<'a, T: ?Sized + CodeLocation> CodeLocation for &'a T

source§

fn loc(&self) -> Loc

source§

impl<'a, T: ?Sized + CodeLocation> CodeLocation for &'a mut T

source§

fn loc(&self) -> Loc

source§

impl<T: ?Sized + CodeLocation> CodeLocation for Box<T>

source§

fn loc(&self) -> Loc

source§

impl<T: ?Sized + CodeLocation> CodeLocation for Rc<T>

source§

fn loc(&self) -> Loc

source§

impl<T: ?Sized + CodeLocation> CodeLocation for Arc<T>

source§

fn loc(&self) -> Loc

Implementors§

source§

impl CodeLocation for LexicalError

source§

impl CodeLocation for CatchClause

source§

impl CodeLocation for Comment

source§

impl CodeLocation for ContractPart

source§

impl CodeLocation for ContractTy

source§

impl CodeLocation for Expression

source§

impl CodeLocation for FunctionAttribute

source§

impl CodeLocation for Import

source§

impl CodeLocation for Loc

source§

impl CodeLocation for Mutability

source§

impl CodeLocation for SourceUnitPart

source§

impl CodeLocation for Statement

source§

impl CodeLocation for StorageLocation

source§

impl CodeLocation for UsingList

source§

impl CodeLocation for VariableAttribute

source§

impl CodeLocation for YulExpression

source§

impl CodeLocation for YulStatement

source§

impl CodeLocation for YulSwitchOptions

source§

impl CodeLocation for Annotation

source§

impl CodeLocation for Base

source§

impl CodeLocation for ContractDefinition

source§

impl CodeLocation for EnumDefinition

source§

impl CodeLocation for ErrorDefinition

source§

impl CodeLocation for ErrorParameter

source§

impl CodeLocation for EventDefinition

source§

impl CodeLocation for EventParameter

source§

impl CodeLocation for FunctionDefinition

source§

impl CodeLocation for HexLiteral

source§

impl CodeLocation for Identifier

source§

impl CodeLocation for IdentifierPath

source§

impl CodeLocation for NamedArgument

source§

impl CodeLocation for Parameter

source§

impl CodeLocation for StringLiteral

source§

impl CodeLocation for StructDefinition

source§

impl CodeLocation for TypeDefinition

source§

impl CodeLocation for Using

source§

impl CodeLocation for UsingFunction

source§

impl CodeLocation for VariableDeclaration

source§

impl CodeLocation for VariableDefinition

source§

impl CodeLocation for YulBlock

source§

impl CodeLocation for YulFor

source§

impl CodeLocation for YulFunctionCall

source§

impl CodeLocation for YulFunctionDefinition

source§

impl CodeLocation for YulSwitch

source§

impl CodeLocation for YulTypedIdentifier