@@ -78,7 +78,7 @@ pub struct Node<K, V> {
78
78
_capacity : usize ,
79
79
}
80
80
81
- struct NodeSlice < ' a , K : ' a , V : ' a > {
81
+ pub struct NodeSlice < ' a , K : ' a , V : ' a > {
82
82
keys : & ' a [ K ] ,
83
83
vals : & ' a [ V ] ,
84
84
pub edges : & ' a [ Node < K , V > ] ,
@@ -87,7 +87,7 @@ struct NodeSlice<'a, K: 'a, V: 'a> {
87
87
has_edges : bool ,
88
88
}
89
89
90
- struct MutNodeSlice < ' a , K : ' a , V : ' a > {
90
+ pub struct MutNodeSlice < ' a , K : ' a , V : ' a > {
91
91
keys : & ' a [ K ] ,
92
92
vals : & ' a mut [ V ] ,
93
93
pub edges : & ' a mut [ Node < K , V > ] ,
@@ -1344,7 +1344,7 @@ fn min_load_from_capacity(cap: usize) -> usize {
1344
1344
/// A trait for pairs of `Iterator`s, one over edges and the other over key/value pairs. This is
1345
1345
/// necessary, as the `MoveTraversalImpl` needs to have a destructor that deallocates the `Node`,
1346
1346
/// and a pair of `Iterator`s would require two independent destructors.
1347
- trait TraversalImpl {
1347
+ pub trait TraversalImpl {
1348
1348
type Item ;
1349
1349
type Edge ;
1350
1350
@@ -1358,7 +1358,7 @@ trait TraversalImpl {
1358
1358
/// A `TraversalImpl` that actually is backed by two iterators. This works in the non-moving case,
1359
1359
/// as no deallocation needs to be done.
1360
1360
#[ derive( Clone ) ]
1361
- struct ElemsAndEdges < Elems , Edges > ( Elems , Edges ) ;
1361
+ pub struct ElemsAndEdges < Elems , Edges > ( Elems , Edges ) ;
1362
1362
1363
1363
impl < K , V , E , Elems : DoubleEndedIterator , Edges : DoubleEndedIterator >
1364
1364
TraversalImpl for ElemsAndEdges < Elems , Edges >
@@ -1375,7 +1375,7 @@ impl<K, V, E, Elems: DoubleEndedIterator, Edges: DoubleEndedIterator>
1375
1375
}
1376
1376
1377
1377
/// A `TraversalImpl` taking a `Node` by value.
1378
- struct MoveTraversalImpl < K , V > {
1378
+ pub struct MoveTraversalImpl < K , V > {
1379
1379
keys : RawItems < K > ,
1380
1380
vals : RawItems < V > ,
1381
1381
edges : RawItems < Node < K , V > > ,
@@ -1436,7 +1436,7 @@ impl<K, V> Drop for MoveTraversalImpl<K, V> {
1436
1436
1437
1437
/// An abstraction over all the different kinds of traversals a node supports
1438
1438
#[ derive( Clone ) ]
1439
- struct AbsTraversal < Impl > {
1439
+ pub struct AbsTraversal < Impl > {
1440
1440
inner : Impl ,
1441
1441
head_is_edge : bool ,
1442
1442
tail_is_edge : bool ,
0 commit comments