File tree 3 files changed +10
-3
lines changed
3 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
7
7
8
8
## [ Unreleased]
9
9
10
+ ### Added
11
+
12
+ - Added ` Debug ` implementations to hashers.
13
+
10
14
### Changed
11
15
12
16
- Updated the edition from 2015 to 2021.
@@ -16,7 +20,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
16
20
- Removed the ` byteorder ` dependency.
17
21
- Removed the ` BuildHasherDefault ` type.
18
22
- This type existed because ` core::hash::BuildHasherDefault ` did not have a const constructor.
19
- - As of 1.85 core::hash : :BuildHasherDefault has a const constructor.
23
+ - As of 1.85 ` core::hash::BuildHasherDefault ` has a const constructor.
20
24
21
25
## [ v0.3.1] - 2022-08-09
22
26
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ const PRIME: u32 = 0x1000193;
8
8
/// Specifically this implements the [FNV-1a hash].
9
9
///
10
10
/// [FNV-1a hash]: https://en.wikipedia.org/wiki/Fowler%E2%80%93Noll%E2%80%93Vo_hash_function#FNV-1a_hash
11
+ #[ derive( Debug ) ]
11
12
pub struct FnvHasher {
12
13
state : u32 ,
13
14
}
Original file line number Diff line number Diff line change @@ -4,22 +4,24 @@ use core::slice;
4
4
use crate :: Hasher as _;
5
5
6
6
/// 32-bit `MurmurHash3` hasher
7
+ #[ derive( Debug ) ]
7
8
pub struct Murmur3Hasher {
8
9
buf : Buffer ,
9
10
index : Index ,
10
11
processed : u32 ,
11
12
state : State ,
12
13
}
13
14
15
+ #[ derive( Debug ) ]
14
16
struct State ( u32 ) ;
15
17
16
- #[ derive( Clone , Copy ) ]
18
+ #[ derive( Debug , Clone , Copy ) ]
17
19
#[ repr( align( 4 ) ) ]
18
20
struct Buffer {
19
21
bytes : MaybeUninit < [ u8 ; 4 ] > ,
20
22
}
21
23
22
- #[ derive( Clone , Copy , PartialEq ) ]
24
+ #[ derive( Debug , Clone , Copy , PartialEq ) ]
23
25
enum Index {
24
26
_0,
25
27
_1,
You can’t perform that action at this time.
0 commit comments