Skip to main content

slice_longevity

Function slice_longevity 

Source
fn slice_longevity<'a, 'b: 'a>(item: &'a Slice) -> &'b Slice
Expand description

Extends a RocksDB cursor slice borrow to the stream lifetime.

The extension bridges Stream’s fixed item type and does not extend the underlying storage validity. The returned reference becomes invalid when the cursor next moves, so callers must not retain it across a poll.