Skip to content

Conversation

@asonix
Copy link

@asonix asonix commented Jan 10, 2026

Allows passing the Key slice to the predicate and receiving a parsed value, returning that parsed value as the first element of the returned tuple. This can avoid double-parsing of keys that might happen with just Guard::into_inner_if

Allows passing the Key slice to the predicate and receiving
a parsed value, returning that parsed value as the first element
of the returned tuple. This can avoid double-parsing of keys
that might happen with just Guard::into_inner_if
let kv = self.kv?;

if let Some(t) = pred(&kv.key.user_key) {
resolve_value_handle(
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

resolve_value_handle needs access to the key slice, so the predicate can't take ownership of it.

@codecov
Copy link

codecov bot commented Jan 10, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant