@@ -7,9 +7,13 @@ use core::{
7
7
} ;
8
8
9
9
/// [`HashMap`] optimized for hashing [fixed-size byte arrays](FixedBytes).
10
- pub type FbHashMap < const N : usize , V > = HashMap < FixedBytes < N > , V , FbBuildHasher < N > > ;
10
+ pub type FbMap < const N : usize , V > = HashMap < FixedBytes < N > , V , FbBuildHasher < N > > ;
11
+ #[ doc( hidden) ]
12
+ pub type FbHashMap < const N : usize , V > = FbMap < N , V > ;
11
13
/// [`HashSet`] optimized for hashing [fixed-size byte arrays](FixedBytes).
12
- pub type FbHashSet < const N : usize > = HashSet < FixedBytes < N > , FbBuildHasher < N > > ;
14
+ pub type FbSet < const N : usize > = HashSet < FixedBytes < N > , FbBuildHasher < N > > ;
15
+ #[ doc( hidden) ]
16
+ pub type FbHashSet < const N : usize > = FbSet < N > ;
13
17
14
18
cfg_if ! {
15
19
if #[ cfg( feature = "map-indexmap" ) ] {
@@ -26,9 +30,13 @@ macro_rules! fb_alias_maps {
26
30
( $( $ty: ident < $n: literal >) ,* $( , ) ?) => { paste:: paste! {
27
31
$(
28
32
#[ doc = concat!( "[`HashMap`] optimized for hashing [`" , stringify!( $ty) , "`]." ) ]
29
- pub type [ <$ty HashMap >] <V > = HashMap <$ty, V , FbBuildHasher <$n>>;
33
+ pub type [ <$ty Map >] <V > = HashMap <$ty, V , FbBuildHasher <$n>>;
34
+ #[ doc( hidden) ]
35
+ pub type [ <$ty HashMap >] <V > = [ <$ty Map >] <V >;
30
36
#[ doc = concat!( "[`HashSet`] optimized for hashing [`" , stringify!( $ty) , "`]." ) ]
31
- pub type [ <$ty HashSet >] = HashSet <$ty, FbBuildHasher <$n>>;
37
+ pub type [ <$ty Set >] = HashSet <$ty, FbBuildHasher <$n>>;
38
+ #[ doc( hidden) ]
39
+ pub type [ <$ty HashSet >] = [ <$ty Set >] ;
32
40
33
41
cfg_if! {
34
42
if #[ cfg( feature = "map-indexmap" ) ] {
0 commit comments