Skip to content

Commit 4650397

Browse files
committed
wip
1 parent 44b53ed commit 4650397

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

src/iter_guard.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,12 @@ pub trait IterGuard {
5353
}
5454
}
5555

56+
/// Generic iterator value
5657
#[enum_dispatch(IterGuard)]
5758
pub enum IterGuardImpl {
59+
/// Iterator value of a standard LSM-tree
5860
Standard(StandardGuard),
61+
62+
/// Iterator value of a key-value separated tree
5963
Blob(BlobGuard),
6064
}

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ pub type KvPair = (UserKey, UserValue);
164164
pub use {
165165
blob_tree::{handle::BlobIndirection, Guard as BlobGuard},
166166
checksum::Checksum,
167+
iter_guard::IterGuardImpl,
167168
key_range::KeyRange,
168169
merge::BoxedIterator,
169170
slice::Builder,

tests/guard_if.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ fn guard_into_inner_if() -> lsm_tree::Result<()> {
1919
.filter_map(|guard| {
2020
guard
2121
.into_inner_if(|key| key.ends_with(b"#name"))
22-
.transpose()
22+
.unwrap()
23+
.1
2324
})
2425
.count(),
2526
);

0 commit comments

Comments
 (0)