Lines Matching refs:hash

4 use std::hash::{Hash, Hasher};
43 fn hash<H: Hasher>(&self, state: &mut H) {
44 mem::discriminant(self).hash(state);
46 Type::Ident(t) => t.hash(state),
47 Type::RustBox(t) => t.hash(state),
48 Type::UniquePtr(t) => t.hash(state),
49 Type::SharedPtr(t) => t.hash(state),
50 Type::WeakPtr(t) => t.hash(state),
51 Type::Ref(t) => t.hash(state),
52 Type::Ptr(t) => t.hash(state),
53 Type::Str(t) => t.hash(state),
54 Type::RustVec(t) => t.hash(state),
55 Type::CxxVector(t) => t.hash(state),
56 Type::Fn(t) => t.hash(state),
57 Type::SliceRef(t) => t.hash(state),
58 Type::Array(t) => t.hash(state),
105 fn hash<H: Hasher>(&self, state: &mut H) {
111 lifetimes.len().hash(state);
113 lifetime.hash(state);
139 fn hash<H: Hasher>(&self, state: &mut H) {
146 name.hash(state);
147 inner.hash(state);
178 fn hash<H: Hasher>(&self, state: &mut H) {
188 pinned.hash(state);
189 lifetime.hash(state);
190 mutable.hash(state);
191 inner.hash(state);
218 fn hash<H: Hasher>(&self, state: &mut H) {
226 mutable.hash(state);
227 inner.hash(state);
256 fn hash<H: Hasher>(&self, state: &mut H) {
265 lifetime.hash(state);
266 mutable.hash(state);
267 inner.hash(state);
294 fn hash<H: Hasher>(&self, state: &mut H) {
302 inner.hash(state);
303 len.hash(state);
366 fn hash<H: Hasher>(&self, state: &mut H) {
379 asyncness.is_some().hash(state);
380 unsafety.is_some().hash(state);
381 receiver.hash(state);
392 ty.hash(state);
394 ret.hash(state);
395 throws.hash(state);
432 fn hash<H: Hasher>(&self, state: &mut H) {
445 pinned.hash(state);
446 lifetime.hash(state);
447 mutable.hash(state);
448 ty.hash(state);