MCPcopy Create free account
hub / github.com/apache/avro-rs / pointer_hash

Method pointer_hash

avro/src/schema_compatibility.rs:167–171  ·  view source on GitHub ↗

Hash a schema based only on its pointer value.

(schema: &Schema)

Source from the content-addressed store, hash-verified

165
166 /// Hash a schema based only on its pointer value.
167 fn pointer_hash(schema: &Schema) -> u64 {
168 let mut hasher = DefaultHasher::new();
169 ptr::hash(schema, &mut hasher);
170 hasher.finish()
171 }
172
173 /// The actual implementation of "`full_match_schemas()`" but without the recursion protection.
174 ///

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected