We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 65146eb commit 9ddaedfCopy full SHA for 9ddaedf
scylla-cql/src/frame/value.rs
@@ -337,6 +337,13 @@ impl PartialEq for CqlVarint {
337
}
338
339
340
+/// Computes the hash of normalized [`CqlVarint`].
341
+impl std::hash::Hash for CqlVarint {
342
+ fn hash<H: std::hash::Hasher>(&self, state: &mut H) {
343
+ self.as_normalized_slice().hash(state)
344
+ }
345
+}
346
+
347
/// Native CQL date representation that allows for a bigger range of dates (-262145-1-1 to 262143-12-31).
348
///
349
/// Represented as number of days since -5877641-06-23 i.e. 2^31 days before unix epoch.
0 commit comments