Structs§
- Type used to check whether two ast are the same. This is different from the operator
==
on ast types as this operator would compare true equality with ID and span. - Type used to hash an ast element. This is different from the
Hash
trait on ast types as this trait would consider IDs and spans.
Enums§
- Determines how paths are hashed and compared for equality.
Functions§
- Checks if the two
Option
s are bothNone
or some equal values as pereq_fn
. - Counts how many elements of the slices are equal as per
eq_fn
. - Checks if two expressions evaluate to the same value, and donβt contain any side effects.
- eq_
span_ πtokens - Returns the segments of a path that might have generic parameters. Usually just the last segment for free items, except for when the path resolves to an associated item, in which case it is the last two
- Checks if two slices are equal as per
eq_fn
. - reduce_
exprkind πSome simple reductions like{ return }
=>return
- swap_
binop π
Type Aliases§
- Spanless
EqCallback πCallback that is called when two expressions are not equal in the sense ofSpanlessEq
, but other conditions would make them equal.