• Home
  • Raw
  • Download

Lines Matching full:hash

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