File tree 1 file changed +4
-4
lines changed 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -431,24 +431,24 @@ pub fn loop_leaves(rope: Rope, it: fn(node::Leaf) -> bool) -> bool{
431
431
432
432
pub mod iterator {
433
433
pub mod leaf {
434
- fn start ( rope : Rope ) -> node:: leaf_iterator:: T {
434
+ pub fn start ( rope : Rope ) -> node:: leaf_iterator:: T {
435
435
match ( rope) {
436
436
node:: Empty => return node:: leaf_iterator:: empty ( ) ,
437
437
node:: Content ( x) => return node:: leaf_iterator:: start ( x)
438
438
}
439
439
}
440
- fn next ( it : & node:: leaf_iterator:: T ) -> Option < node:: Leaf > {
440
+ pub fn next ( it : & node:: leaf_iterator:: T ) -> Option < node:: Leaf > {
441
441
return node:: leaf_iterator:: next ( it) ;
442
442
}
443
443
}
444
444
pub mod char {
445
- fn start ( rope : Rope ) -> node:: char_iterator:: T {
445
+ pub fn start ( rope : Rope ) -> node:: char_iterator:: T {
446
446
match ( rope) {
447
447
node:: Empty => return node:: char_iterator:: empty ( ) ,
448
448
node:: Content ( x) => return node:: char_iterator:: start ( x)
449
449
}
450
450
}
451
- fn next ( it : & node:: char_iterator:: T ) -> Option < char > {
451
+ pub fn next ( it : & node:: char_iterator:: T ) -> Option < char > {
452
452
return node:: char_iterator:: next ( it)
453
453
}
454
454
}
You can’t perform that action at this time.
0 commit comments