Skip to main content

reborrow_input

Function reborrow_input 

Source
pub fn reborrow_input<'s, 'a: 's>(inp: &'s mut InputFn<'a>) -> InputFn<'s>
Expand description

Lend an input source to a shorter-lived context. A &mut inside an Option does not reborrow on its own, so the borrow is taken apart and put back.