Struct clippy_lints::utils::SpanlessEq [] [src]

pub struct SpanlessEq<'a, 'tcx: 'a> { /* fields omitted */ }

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.

Note that some expressions kinds are not considered but could be added.

Methods

impl<'a, 'tcx: 'a> SpanlessEq<'a, 'tcx>
[src]

Check whether two statements are the same.

Check whether two blocks are the same.

Check whether two patterns are the same.