Add iterators for bforest::{Set,Map}.

The iter() methods return an iterator that traverses all set elements /
map key-value pairs. The iterator doesn't require a mutable container
and forest reference, unlike the cursor types.
This commit is contained in:
Jakob Stoklund Olesen
2017-11-20 13:24:19 -08:00
parent a2ff2a6836
commit 8eaf7d3904
3 changed files with 102 additions and 3 deletions

View File

@@ -22,8 +22,8 @@ mod path;
mod pool;
mod set;
pub use self::map::{MapForest, Map, MapCursor};
pub use self::set::{SetForest, Set, SetCursor};
pub use self::map::{MapForest, Map, MapCursor, MapIter};
pub use self::set::{SetForest, Set, SetCursor, SetIter};
use self::node::NodeData;
use self::path::Path;