File tree 3 files changed +6
-12
lines changed
3 files changed +6
-12
lines changed Original file line number Diff line number Diff line change @@ -201,22 +201,16 @@ mod util;
201
201
202
202
// Data structure modules
203
203
204
- #[legacy_exports]
205
204
mod dvec;
206
205
#[path="iter-trait"]
207
206
mod dvec_iter {
208
- #[legacy_exports];
209
207
#[path = "dvec.rs"]
210
- #[legacy_exports]
211
208
mod inst;
212
209
}
213
- #[legacy_exports]
214
210
mod dlist;
215
211
#[path="iter-trait"]
216
212
mod dlist_iter {
217
- #[legacy_exports];
218
213
#[path ="dlist.rs"]
219
- #[legacy_exports]
220
214
mod inst;
221
215
}
222
216
mod send_map;
Original file line number Diff line number Diff line change 1
1
#[ allow( non_camel_case_types) ]
2
- type IMPL_T < A > = dlist:: DList < A > ;
2
+ pub type IMPL_T < A > = dlist:: DList < A > ;
3
3
4
4
/**
5
5
* Iterates through the current contents.
@@ -8,7 +8,7 @@ type IMPL_T<A> = dlist::DList<A>;
8
8
* e.g. breadth-first search with in-place enqueues), but removing the current
9
9
* node is forbidden.
10
10
*/
11
- pure fn EACH < A > ( self : & IMPL_T < A > , f : fn ( v : & A ) -> bool ) {
11
+ pub pure fn EACH < A > ( self : & IMPL_T < A > , f : fn ( v : & A ) -> bool ) {
12
12
let mut link = self . peek_n ( ) ;
13
13
while option:: is_some ( & link) {
14
14
let nobe = option:: get ( & link) ;
@@ -29,6 +29,6 @@ pure fn EACH<A>(self: &IMPL_T<A>, f: fn(v: &A) -> bool) {
29
29
}
30
30
}
31
31
32
- pure fn SIZE_HINT < A > ( self : & IMPL_T < A > ) -> Option < uint > {
32
+ pub pure fn SIZE_HINT < A > ( self : & IMPL_T < A > ) -> Option < uint > {
33
33
Some ( self . len ( ) )
34
34
}
Original file line number Diff line number Diff line change 1
1
#[ allow( non_camel_case_types) ]
2
- type IMPL_T < A > = dvec:: DVec < A > ;
2
+ pub type IMPL_T < A > = dvec:: DVec < A > ;
3
3
4
4
/**
5
5
* Iterates through the current contents.
6
6
*
7
7
* Attempts to access this dvec during iteration will fail.
8
8
*/
9
- pure fn EACH < A > ( self : & IMPL_T < A > , f : fn ( v : & A ) -> bool ) {
9
+ pub pure fn EACH < A > ( self : & IMPL_T < A > , f : fn ( v : & A ) -> bool ) {
10
10
unsafe {
11
11
do self . swap |v| {
12
12
v. each ( f) ;
@@ -15,6 +15,6 @@ pure fn EACH<A>(self: &IMPL_T<A>, f: fn(v: &A) -> bool) {
15
15
}
16
16
}
17
17
18
- pure fn SIZE_HINT < A > ( self : & IMPL_T < A > ) -> Option < uint > {
18
+ pub pure fn SIZE_HINT < A > ( self : & IMPL_T < A > ) -> Option < uint > {
19
19
Some ( self . len ( ) )
20
20
}
You can’t perform that action at this time.
0 commit comments