Skip to main content

keyval_longevity

Function keyval_longevity 

Source
fn keyval_longevity<'a, 'b: 'a>(item: KeyVal<'a>) -> KeyVal<'b>
Expand description

Extends both borrows in a cursor key-value pair to the stream lifetime.

The returned pair remains valid only until the next cursor movement. This helper delegates each component to slice_longevity and carries the same lifetime contract.