forge_fmt::solang_ext

Trait AstEq

Source
pub trait AstEq {
    // Required method
    fn ast_eq(&self, other: &Self) -> bool;
}
Expand description

Check if two ParseTrees are equal ignoring location information or ordering if ordering does not matter

Required Methods§

Source

fn ast_eq(&self, other: &Self) -> bool

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl AstEq for bool

Source§

fn ast_eq(&self, other: &Self) -> bool

Source§

impl AstEq for u8

Source§

fn ast_eq(&self, other: &Self) -> bool

Source§

impl AstEq for u16

Source§

fn ast_eq(&self, other: &Self) -> bool

Source§

impl AstEq for ()

Source§

fn ast_eq(&self, _other: &Self) -> bool

Source§

impl AstEq for String

Source§

fn ast_eq(&self, other: &Self) -> bool

Source§

impl AstEq for Annotation

Source§

fn ast_eq(&self, other: &Self) -> bool

Source§

impl AstEq for Base

Source§

fn ast_eq(&self, other: &Self) -> bool

Source§

impl AstEq for CatchClause

Source§

fn ast_eq(&self, other: &Self) -> bool

Source§

impl AstEq for ContractDefinition

Source§

fn ast_eq(&self, other: &Self) -> bool

Source§

impl AstEq for ContractPart

Source§

fn ast_eq(&self, other: &Self) -> bool

Source§

impl AstEq for ContractTy

Source§

fn ast_eq(&self, other: &Self) -> bool

Source§

impl AstEq for EnumDefinition

Source§

fn ast_eq(&self, other: &Self) -> bool

Source§

impl AstEq for ErrorDefinition

Source§

fn ast_eq(&self, other: &Self) -> bool

Source§

impl AstEq for ErrorParameter

Source§

fn ast_eq(&self, other: &Self) -> bool

Source§

impl AstEq for EventDefinition

Source§

fn ast_eq(&self, other: &Self) -> bool

Source§

impl AstEq for EventParameter

Source§

fn ast_eq(&self, other: &Self) -> bool

Source§

impl AstEq for Expression

Source§

fn ast_eq(&self, other: &Self) -> bool

Source§

impl AstEq for FunctionAttribute

Source§

fn ast_eq(&self, other: &Self) -> bool

Source§

impl AstEq for FunctionDefinition

Source§

fn ast_eq(&self, other: &Self) -> bool

Source§

impl AstEq for FunctionTy

Source§

fn ast_eq(&self, other: &Self) -> bool

Source§

impl AstEq for HexLiteral

Source§

fn ast_eq(&self, other: &Self) -> bool

Source§

impl AstEq for I256

Source§

fn ast_eq(&self, other: &Self) -> bool

Source§

impl AstEq for Identifier

Source§

fn ast_eq(&self, other: &Self) -> bool

Source§

impl AstEq for IdentifierPath

Source§

fn ast_eq(&self, other: &Self) -> bool

Source§

impl AstEq for Import

Source§

fn ast_eq(&self, other: &Self) -> bool

Source§

impl AstEq for ImportPath

Source§

fn ast_eq(&self, other: &Self) -> bool

Source§

impl AstEq for Loc

Source§

fn ast_eq(&self, _other: &Self) -> bool

Source§

impl AstEq for Mutability

Source§

fn ast_eq(&self, other: &Self) -> bool

Source§

impl AstEq for NamedArgument

Source§

fn ast_eq(&self, other: &Self) -> bool

Source§

impl AstEq for Parameter

Source§

fn ast_eq(&self, other: &Self) -> bool

Source§

impl AstEq for SourceUnit

Source§

fn ast_eq(&self, other: &Self) -> bool

Source§

impl AstEq for SourceUnitPart

Source§

fn ast_eq(&self, other: &Self) -> bool

Source§

impl AstEq for Statement

Source§

fn ast_eq(&self, other: &Self) -> bool

Source§

impl AstEq for StorageLocation

Source§

fn ast_eq(&self, other: &Self) -> bool

Source§

impl AstEq for StringLiteral

Source§

fn ast_eq(&self, other: &Self) -> bool

Source§

impl AstEq for StructDefinition

Source§

fn ast_eq(&self, other: &Self) -> bool

Source§

impl AstEq for Type

Source§

fn ast_eq(&self, other: &Self) -> bool

Source§

impl AstEq for TypeDefinition

Source§

fn ast_eq(&self, other: &Self) -> bool

Source§

impl AstEq for U256

Source§

fn ast_eq(&self, other: &Self) -> bool

Source§

impl AstEq for UserDefinedOperator

Source§

fn ast_eq(&self, other: &Self) -> bool

Source§

impl AstEq for Using

Source§

fn ast_eq(&self, other: &Self) -> bool

Source§

impl AstEq for UsingFunction

Source§

fn ast_eq(&self, other: &Self) -> bool

Source§

impl AstEq for UsingList

Source§

fn ast_eq(&self, other: &Self) -> bool

Source§

impl AstEq for VariableAttribute

Source§

fn ast_eq(&self, other: &Self) -> bool

Source§

impl AstEq for VariableDeclaration

Source§

fn ast_eq(&self, other: &Self) -> bool

Source§

impl AstEq for VariableDefinition

Source§

fn ast_eq(&self, other: &Self) -> bool

Source§

impl AstEq for Visibility

Source§

fn ast_eq(&self, other: &Self) -> bool

Source§

impl AstEq for YulBlock

Source§

fn ast_eq(&self, other: &Self) -> bool

Source§

impl AstEq for YulExpression

Source§

fn ast_eq(&self, other: &Self) -> bool

Source§

impl AstEq for YulFor

Source§

fn ast_eq(&self, other: &Self) -> bool

Source§

impl AstEq for YulFunctionCall

Source§

fn ast_eq(&self, other: &Self) -> bool

Source§

impl AstEq for YulFunctionDefinition

Source§

fn ast_eq(&self, other: &Self) -> bool

Source§

impl AstEq for YulStatement

Source§

fn ast_eq(&self, other: &Self) -> bool

Source§

impl AstEq for YulSwitch

Source§

fn ast_eq(&self, other: &Self) -> bool

Source§

impl AstEq for YulSwitchOptions

Source§

fn ast_eq(&self, other: &Self) -> bool

Source§

impl AstEq for YulTypedIdentifier

Source§

fn ast_eq(&self, other: &Self) -> bool

Source§

impl<A> AstEq for (A,)
where A: AstEq,

Source§

fn ast_eq(&self, other: &Self) -> bool

Source§

impl<A, B> AstEq for (A, B)
where A: AstEq, B: AstEq,

Source§

fn ast_eq(&self, other: &Self) -> bool

Source§

impl<A, B, C> AstEq for (A, B, C)
where A: AstEq, B: AstEq, C: AstEq,

Source§

fn ast_eq(&self, other: &Self) -> bool

Source§

impl<A, B, C, D> AstEq for (A, B, C, D)
where A: AstEq, B: AstEq, C: AstEq, D: AstEq,

Source§

fn ast_eq(&self, other: &Self) -> bool

Source§

impl<A, B, C, D, E> AstEq for (A, B, C, D, E)
where A: AstEq, B: AstEq, C: AstEq, D: AstEq, E: AstEq,

Source§

fn ast_eq(&self, other: &Self) -> bool

Source§

impl<T> AstEq for Option<T>
where T: AstEq,

Source§

fn ast_eq(&self, other: &Self) -> bool

Source§

impl<T> AstEq for &T
where T: AstEq,

Source§

fn ast_eq(&self, other: &Self) -> bool

Source§

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

Source§

fn ast_eq(&self, other: &Self) -> bool

Source§

impl<T> AstEq for Vec<T>
where T: AstEq,

Source§

fn ast_eq(&self, other: &Self) -> bool

Implementors§