Struct clippy_utils::SpanlessHash
source · [−]pub struct SpanlessHash<'a, 'tcx> {
cx: &'a LateContext<'tcx>,
maybe_typeck_results: Option<&'tcx TypeckResults<'tcx>>,
s: FxHasher,
}Expand description
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.
All expressions kind are hashed, but some might have a weaker hash.
Fields
cx: &'a LateContext<'tcx>Context used to evaluate constant expressions.
maybe_typeck_results: Option<&'tcx TypeckResults<'tcx>>s: FxHasherImplementations
Auto Trait Implementations
impl<'a, 'tcx> !RefUnwindSafe for SpanlessHash<'a, 'tcx>
impl<'a, 'tcx> !Send for SpanlessHash<'a, 'tcx>
impl<'a, 'tcx> !Sync for SpanlessHash<'a, 'tcx>
impl<'a, 'tcx> Unpin for SpanlessHash<'a, 'tcx> where
'tcx: 'a,
impl<'a, 'tcx> !UnwindSafe for SpanlessHash<'a, 'tcx>
Blanket Implementations
Layout
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 24 bytes